Skip to content

Commit

Permalink
Minor, remove unused code
Browse files Browse the repository at this point in the history
Found by Coverity Scan

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
  • Loading branch information
troglobit committed Apr 24, 2024
1 parent 1727f7a commit 0fbf304
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/syslog.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,7 @@ vsyslogp_r(int pri, struct syslog_data *data, const char *msgid,
if (!(data->log_stat & LOG_NLOG)) {
prlen = snprintf(p, tbuf_left, "<%d>", pri);
DEC();
} else
prlen = 0;
}

prlen = strftime(dbuf, sizeof(dbuf), "%b %d %T ", &tmnow);

Expand Down

0 comments on commit 0fbf304

Please sign in to comment.