From 56f1f595b8fddcf6f02666bf3f90304d852b6f71 Mon Sep 17 00:00:00 2001 From: Dennis Heimbigner Date: Tue, 28 Sep 2021 14:19:07 -0600 Subject: [PATCH] Fix new lgtm alerts --- libdispatch/dauth.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/libdispatch/dauth.c b/libdispatch/dauth.c index 20a94dff4f..a57811fc52 100644 --- a/libdispatch/dauth.c +++ b/libdispatch/dauth.c @@ -27,8 +27,7 @@ See COPYRIGHT for license information. #include "ncrc.h" - -#define DEBUG +#undef DEBUG #undef MEMCHECK #define MEMCHECK(x) if((x)==NULL) {goto nomem;} else {} @@ -228,25 +227,25 @@ setauthfield(NCauth* auth, const char* flag, const char* value) if(strcmp(flag,"HTTP.DEFLATE")==0) { if(atoi(value)) auth->curlflags.compress = 1; #ifdef DEBUG - nclog(NCLOGNOTE,"HTTP.DEFLATE: %ld", auth->curlflags.compress); + nclog(NCLOGNOTE,"HTTP.DEFLATE: %ld", (long)auth->curlflags.compress); #endif } if(strcmp(flag,"HTTP.VERBOSE")==0) { if(atoi(value)) auth->curlflags.verbose = 1; #ifdef DEBUG - nclog(NCLOGNOTE,"HTTP.VERBOSE: %ld", auth->curlflags.verbose); + nclog(NCLOGNOTE,"HTTP.VERBOSE: %ld", (long)auth->curlflags.verbose); #endif } if(strcmp(flag,"HTTP.TIMEOUT")==0) { if(atoi(value)) auth->curlflags.timeout = atoi(value); #ifdef DEBUG - nclog(NCLOGNOTE,"HTTP.TIMEOUT: %ld", auth->curlflags.timeout); + nclog(NCLOGNOTE,"HTTP.TIMEOUT: %ld", (long)auth->curlflags.timeout); #endif } if(strcmp(flag,"HTTP.CONNECTTIMEOUT")==0) { if(atoi(value)) auth->curlflags.connecttimeout = atoi(value); #ifdef DEBUG - nclog(NCLOGNOTE,"HTTP.CONNECTTIMEOUT: %ld", auth->curlflags.connecttimeout); + nclog(NCLOGNOTE,"HTTP.CONNECTTIMEOUT: %ld", (long)auth->curlflags.connecttimeout); #endif } if(strcmp(flag,"HTTP.USERAGENT")==0) {