]> mj.ucw.cz Git - libucw.git/blobdiff - lib/log.c
cf_default_{init,done} interface used instead cf_read
[libucw.git] / lib / log.c
index 4d81e85d36d7d068e50bd0f345461a9a845e5fda..16fe4e227f2ef574111953b836075df70fe858f7 100644 (file)
--- a/lib/log.c
+++ b/lib/log.c
@@ -11,7 +11,7 @@
 #include <stdarg.h>
 #include <fcntl.h>
 #include <unistd.h>
-#include <sys/time.h>
+#include <time.h>
 
 static char *log_progname;
 static pid_t log_pid;
@@ -27,7 +27,6 @@ vlog(unsigned int cat, const char *msg, va_list args)
 {
   time_t tim = time(NULL);
   struct tm *tm = localtime(&tim);
-  char *prog = log_progname ?: "?";
   char buf[32];
 
   strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", tm);