]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
logger: fix whitespace and compiler warning [-Wunused-variable]
authorKarel Zak <kzak@redhat.com>
Fri, 6 Mar 2015 10:27:16 +0000 (11:27 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 6 Mar 2015 10:27:16 +0000 (11:27 +0100)
misc-utils/logger.c: In function ‘syslog_rfc3164’:
misc-utils/logger.c:336:9: warning: unused variable ‘now’ [-Wunused-variable]

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/logger.c

index 0d33b5b40f2e3d9c60434af5886ca67604941ff3..ca50c824ed59fc2709f5f9d2cd93b8d309aa5a92 100644 (file)
@@ -326,14 +326,13 @@ rfc3164_current_time(void)
        tm = localtime(&tv.tv_sec);
        snprintf(time, sizeof(time),"%s %2d %2.2d:%2.2d:%2.2d",
                monthnames[tm->tm_mon], tm->tm_mday,
-               tm->tm_hour, tm->tm_min, tm->tm_sec); 
+               tm->tm_hour, tm->tm_min, tm->tm_sec);
        return time;
 }
 
 static void syslog_rfc3164(const struct logger_ctl *ctl, const char *msg)
 {
        char *buf, pid[30], *cp, *hostname, *dot;
-       time_t now;
        int len;
 
        *pid = '\0';