syslogd: Change f_prevcount type; int --> size_t
If it wraps around to zero we want to log the message anyway. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@ -1725,7 +1725,7 @@ static void fprintlog_successive(struct filed *f, int flags)
|
||||
buffer.timestamp = f->f_lasttime;
|
||||
buffer.flags = flags;
|
||||
|
||||
snprintf(msg, sizeof(msg), "last message buffered %d times",
|
||||
snprintf(msg, sizeof(msg), "last message buffered %zd times",
|
||||
f->f_prevcount);
|
||||
buffer.msg = msg;
|
||||
|
||||
|
Reference in New Issue
Block a user