]> arthur.barton.de Git - netatalk.git/commitdiff
Warning fixes.
authorsrittau <srittau>
Sat, 16 Feb 2002 17:14:54 +0000 (17:14 +0000)
committersrittau <srittau>
Sat, 16 Feb 2002 17:14:54 +0000 (17:14 +0000)
libatalk/util/logger.c

index d9e348e0d265301f48cdb07a188c6f259c40a5a1..87180eeb0a116fab80498fee5b6716f5f0e0a1a3 100644 (file)
 #include <stdio.h>
 #include <limits.h>
 #include <stdarg.h>
+#include <string.h>
+#include <stdlib.h>
 #include <syslog.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <unistd.h>
 #include <time.h>
 
 #include <atalk/boolean.h>
@@ -457,7 +460,6 @@ void make_log_entry(enum loglevels loglevel, enum logtypes logtype, char *messag
   char log_buffer[MAXLOGSIZE];
 #ifndef DISABLE_LOGGER
   char log_details_buffer[MAXLOGSIZE];
-  bool message_overran_log_buffer = false;
 
   log_file_data_pair *logs;
 
@@ -646,7 +648,6 @@ void generate_message_details(char *message_details_buffer,
   const char *logtype_string;
 
   char loglevel_string[12]; /* max int size is 2 billion, or 10 digits */
-  bool message_overran_log_buffer = false;
 
   struct what_to_print_array what_to_print;