summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2015-03-06 11:27:16 +0100
committerKarel Zak <kzak@redhat.com>2015-03-12 10:17:37 +0100
commitd8fd74749a1e78927340b47dfe633fd777b7f9ef (patch)
tree98628879f7b9c47160b373be2b8909e8b17c6fe4
parent314f5a33b6da4ec760a1463305661e1ed9a28e55 (diff)
downloadutil-linux-d8fd74749a1e78927340b47dfe633fd777b7f9ef.tar.gz
logger: fix whitespace and compiler warning [-Wunused-variable]
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>
-rw-r--r--misc-utils/logger.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/misc-utils/logger.c b/misc-utils/logger.c
index e07b932f3..81581300e 100644
--- a/misc-utils/logger.c
+++ b/misc-utils/logger.c
@@ -328,14 +328,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';