diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2005-05-22 12:14:17 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2005-05-22 12:14:17 +0000 |
commit | 8ca02062561fae6bddf7499b1e6bb7196eaba647 (patch) | |
tree | 0e67e52e248f9671ac4862f43b81b7b0d692fe7f /usr.sbin/sasyncd/log.c | |
parent | 17552c0aece3c24d0bc4a2ce2a41d01b80df3592 (diff) |
style nits
Diffstat (limited to 'usr.sbin/sasyncd/log.c')
-rw-r--r-- | usr.sbin/sasyncd/log.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/sasyncd/log.c b/usr.sbin/sasyncd/log.c index d8163468c34..e7e7aa9fd4b 100644 --- a/usr.sbin/sasyncd/log.c +++ b/usr.sbin/sasyncd/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.2 2005/03/30 18:56:19 ho Exp $ */ +/* $OpenBSD: log.c,v 1.3 2005/05/22 12:14:16 ho Exp $ */ /* * Copyright (c) 2005 Håkan Olsson. All rights reserved. @@ -62,8 +62,9 @@ log_output(char *msg) void log_err(const char *fmt, ...) { - va_list ap; - int off = 0; + extern char *__progname; + int off = 0; + va_list ap; if (cfgstate.debug) { snprintf(logbuf, sizeof logbuf, "%s: ", __progname); @@ -75,7 +76,7 @@ log_err(const char *fmt, ...) va_end(ap); strlcat(logbuf, ": ", sizeof logbuf); - strlcat(logbuf, strerror (errno), sizeof logbuf); + strlcat(logbuf, strerror(errno), sizeof logbuf); log_output(logbuf); return; |