summaryrefslogtreecommitdiffstats
path: root/misc-utils/logger.c
diff options
context:
space:
mode:
authorKarel Zak2015-03-06 11:27:16 +0100
committerKarel Zak2015-03-06 11:27:16 +0100
commit0f1c825b75f2a8e8c1a1979f59c90f20d3631a54 (patch)
treefc5675abd48e0b5d2364e3cf7a5363d0177e559a /misc-utils/logger.c
parentMerge branch 'logger-fix-local-timestamp' of https://github.com/rgerhards/uti... (diff)
downloadkernel-qcow2-util-linux-0f1c825b75f2a8e8c1a1979f59c90f20d3631a54.tar.gz
kernel-qcow2-util-linux-0f1c825b75f2a8e8c1a1979f59c90f20d3631a54.tar.xz
kernel-qcow2-util-linux-0f1c825b75f2a8e8c1a1979f59c90f20d3631a54.zip
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>
Diffstat (limited to 'misc-utils/logger.c')
-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 0d33b5b40..ca50c824e 100644
--- a/misc-utils/logger.c
+++ b/misc-utils/logger.c
@@ -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';