@@ -27,8 +27,7 @@ See COPYRIGHT for license information.
2727
2828#include "ncrc.h"
2929
30-
31- #define DEBUG
30+ #undef DEBUG
3231
3332#undef MEMCHECK
3433#define MEMCHECK (x ) if((x)==NULL) {goto nomem;} else {}
@@ -228,25 +227,25 @@ setauthfield(NCauth* auth, const char* flag, const char* value)
228227 if (strcmp (flag ,"HTTP.DEFLATE" )== 0 ) {
229228 if (atoi (value )) auth -> curlflags .compress = 1 ;
230229#ifdef DEBUG
231- nclog (NCLOGNOTE ,"HTTP.DEFLATE: %ld" , auth -> curlflags .compress );
230+ nclog (NCLOGNOTE ,"HTTP.DEFLATE: %ld" , ( long ) auth -> curlflags .compress );
232231#endif
233232 }
234233 if (strcmp (flag ,"HTTP.VERBOSE" )== 0 ) {
235234 if (atoi (value )) auth -> curlflags .verbose = 1 ;
236235#ifdef DEBUG
237- nclog (NCLOGNOTE ,"HTTP.VERBOSE: %ld" , auth -> curlflags .verbose );
236+ nclog (NCLOGNOTE ,"HTTP.VERBOSE: %ld" , ( long ) auth -> curlflags .verbose );
238237#endif
239238 }
240239 if (strcmp (flag ,"HTTP.TIMEOUT" )== 0 ) {
241240 if (atoi (value )) auth -> curlflags .timeout = atoi (value );
242241#ifdef DEBUG
243- nclog (NCLOGNOTE ,"HTTP.TIMEOUT: %ld" , auth -> curlflags .timeout );
242+ nclog (NCLOGNOTE ,"HTTP.TIMEOUT: %ld" , ( long ) auth -> curlflags .timeout );
244243#endif
245244 }
246245 if (strcmp (flag ,"HTTP.CONNECTTIMEOUT" )== 0 ) {
247246 if (atoi (value )) auth -> curlflags .connecttimeout = atoi (value );
248247#ifdef DEBUG
249- nclog (NCLOGNOTE ,"HTTP.CONNECTTIMEOUT: %ld" , auth -> curlflags .connecttimeout );
248+ nclog (NCLOGNOTE ,"HTTP.CONNECTTIMEOUT: %ld" , ( long ) auth -> curlflags .connecttimeout );
250249#endif
251250 }
252251 if (strcmp (flag ,"HTTP.USERAGENT" )== 0 ) {
0 commit comments