From: Jean-Marc Pigeon (Delson) Date: Tue, 11 Feb 2025 15:45:29 +0000 (-0500) Subject: Adding an dbgtst Makefile entry X-Git-Tag: tag-0.4.2-end X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=c12bb8b579b258d62bf8f3aea0902aad3a80a00e;p=jmp%2Fmailleur Adding an dbgtst Makefile entry --- diff --git a/Makefile b/Makefile index 00a84e0..bc31c82 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,13 @@ clean : #-------------------------------------------------------------------- test : clean debug @ shell/test-spf.sh data-tst/spf.tst - + +#todo a specfic test +DATA = chkaddr.spf.example.com 127.0.1.255 +dbgtst : debug + @ echo "doing chkspf with \"$(DATA)\"" + @ ./bin/chkspf $(DATA) + #-------------------------------------------------------------------- #Installation procedure #-------------------------------------------------------------------- diff --git a/lib/gesspf.c b/lib/gesspf.c index f2faf17..287ca30 100644 --- a/lib/gesspf.c +++ b/lib/gesspf.c @@ -191,7 +191,7 @@ while (proceed==true) { break; case 1 : //getting the list of MX for mxdomain (void) printf("JMPDBG, checkaddr got <%s> ip<%s> cidr='%d'\n", - addrdom,afnnum->strnumip,cidr); + addrdom,afnnum->strnumip,cidr); break; default : //SAFE guard proceed=false; diff --git a/lib/subrou.c b/lib/subrou.c index 4ff8ccd..dbd3479 100644 --- a/lib/subrou.c +++ b/lib/subrou.c @@ -21,7 +21,7 @@ //version definition #define VERSION "0.4.2" -#define RELEASE "35" +#define RELEASE "36" //Public variables PUBLIC int debug=0; //debug level @@ -614,10 +614,8 @@ if (mode!=modopen) { if (appname==(char *)0) appname=strdup(APPNAME); (void) openlog(appname,LOG_NDELAY|LOG_PID,LOG_DAEMON); - (void) rou_alert(0,"Starting: %s-%s",appname,rou_getversion()); break; case false : - (void) rou_alert(0,"Exiting: %s-%s",appname,rou_getversion()); (void) closelog(); if (appname!=(char *)0) { (void) free(appname);