summaryrefslogtreecommitdiff
path: root/usr.bin/finger
diff options
context:
space:
mode:
authoritojun <itojun@NetBSD.org>2000-07-07 15:10:32 +0000
committeritojun <itojun@NetBSD.org>2000-07-07 15:10:32 +0000
commitbbef2fbaacededb5eb9a0855d32a09e3b032f2c5 (patch)
tree803ad37661cca887d0d2f9ba989c9e4fac0d3b4f /usr.bin/finger
parent82cbc88d2a7761987127a50eb8d22f72dad97c6a (diff)
errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd
Diffstat (limited to 'usr.bin/finger')
-rw-r--r--usr.bin/finger/net.c6
-rw-r--r--usr.bin/finger/util.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/finger/net.c b/usr.bin/finger/net.c
index 8f66953d5d6..740458168b6 100644
--- a/usr.bin/finger/net.c
+++ b/usr.bin/finger/net.c
@@ -1,4 +1,4 @@
-/* $NetBSD: net.c,v 1.13 1999/07/02 06:01:23 itojun Exp $ */
+/* $NetBSD: net.c,v 1.14 2000/07/07 15:13:22 itojun Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)net.c 8.4 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: net.c,v 1.13 1999/07/02 06:01:23 itojun Exp $");
+__RCSID("$NetBSD: net.c,v 1.14 2000/07/07 15:13:22 itojun Exp $");
#endif
#endif /* not lint */
@@ -111,7 +111,7 @@ netfinger(name)
}
if (s < 0) {
if (emsg != NULL)
- warn(emsg);
+ warn("%s", emsg);
return;
}
diff --git a/usr.bin/finger/util.c b/usr.bin/finger/util.c
index 8186044cac4..194297a822d 100644
--- a/usr.bin/finger/util.c
+++ b/usr.bin/finger/util.c
@@ -1,4 +1,4 @@
-/* $NetBSD: util.c,v 1.15 1999/11/09 15:06:35 drochner Exp $ */
+/* $NetBSD: util.c,v 1.16 2000/07/07 15:13:22 itojun Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)util.c 8.3 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: util.c,v 1.15 1999/11/09 15:06:35 drochner Exp $");
+__RCSID("$NetBSD: util.c,v 1.16 2000/07/07 15:13:22 itojun Exp $");
#endif
#endif /* not lint */
@@ -345,7 +345,7 @@ find_idle_and_ttywrite(w)
(void)snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_DEV, w->tty);
if (stat(tbuf, &sb) < 0) {
- warn(tbuf);
+ warn("%s", tbuf);
return;
}
w->idletime = now < sb.st_atime ? 0 : now - sb.st_atime;