summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/syslog.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-07-09 00:28:18 +0000
committermillert <millert@openbsd.org>1997-07-09 00:28:18 +0000
commitb0f29dd7fdc54fae18c4ad8af2c7182822d83ca5 (patch)
treed8f675f872a9e2b6144d9effa31125cfa640dc82 /lib/libc/gen/syslog.c
parentClarify strncat(3) count param. (diff)
downloadwireguard-openbsd-b0f29dd7fdc54fae18c4ad8af2c7182822d83ca5.tar.xz
wireguard-openbsd-b0f29dd7fdc54fae18c4ad8af2c7182822d83ca5.zip
Clean up some -Wall complaints.
Diffstat (limited to 'lib/libc/gen/syslog.c')
-rw-r--r--lib/libc/gen/syslog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/syslog.c b/lib/libc/gen/syslog.c
index 81a5b4d6a48..cc56cdef0d6 100644
--- a/lib/libc/gen/syslog.c
+++ b/lib/libc/gen/syslog.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: syslog.c,v 1.2 1996/08/19 08:26:33 tholo Exp $";
+static char rcsid[] = "$OpenBSD: syslog.c,v 1.3 1997/07/09 00:28:24 millert Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -177,7 +177,7 @@ vsyslog(pri, fmt, ap)
* We wouldn't need this mess if printf handled %m, or if
* strerror() had been invented before syslog().
*/
- for (t = fmt_cpy, fmt_left = FMT_LEN; ch = *fmt; ++fmt) {
+ for (t = fmt_cpy, fmt_left = FMT_LEN; (ch = *fmt); ++fmt) {
if (ch == '%' && fmt[1] == 'm') {
++fmt;
prlen = snprintf(t, fmt_left, "%s",