From 0cc5293ebfbd284e9d35004d871b0500679544fd Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Tue, 11 Feb 2025 10:45:29 -0500 Subject: [PATCH] Adding an dbgtst Makefile entry --- Makefile | 8 +++++++- lib/gesspf.c | 2 +- lib/subrou.c | 4 +--- 3 files changed, 9 insertions(+), 5 deletions(-) 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); -- 2.47.3