diff --git a/dnsmasq_interface.c b/dnsmasq_interface.c index f5c945d49..226b630ad 100644 --- a/dnsmasq_interface.c +++ b/dnsmasq_interface.c @@ -794,7 +794,7 @@ void print_flags(unsigned int flags) unsigned int i; char *flagstr = calloc(256,sizeof(char)); for(i = 0; i < sizeof(flags)*8; i++) - if(flags & (1 << i)) + if(flags & (1u << i)) strcat(flagstr, flagnames[i]); logg(" Flags: %s", flagstr); free(flagstr); diff --git a/routines.h b/routines.h index 00040e922..d85c4b787 100644 --- a/routines.h +++ b/routines.h @@ -17,7 +17,7 @@ char * getUserName(void); void removepid(void); void open_FTL_log(bool test); -void logg(const char* str, ...); +void logg(const char* format, ...); void logg_struct_resize(const char* str, int to, int step); void log_counter_info(void); void format_memory_size(char *prefix, unsigned long int bytes, double *formated);