X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Flog.c;h=16fe4e227f2ef574111953b836075df70fe858f7;hb=3fb4a33e0fdaa86984dd3918eb6a1cd345936e07;hp=4d81e85d36d7d068e50bd0f345461a9a845e5fda;hpb=3c6ffef681f366214fdc970488e21aa89caab992;p=libucw.git diff --git a/lib/log.c b/lib/log.c index 4d81e85d..16fe4e22 100644 --- a/lib/log.c +++ b/lib/log.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include 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);