diff options
| author | itojun <itojun@NetBSD.org> | 2000-07-07 15:10:32 +0000 |
|---|---|---|
| committer | itojun <itojun@NetBSD.org> | 2000-07-07 15:10:32 +0000 |
| commit | bbef2fbaacededb5eb9a0855d32a09e3b032f2c5 (patch) | |
| tree | 803ad37661cca887d0d2f9ba989c9e4fac0d3b4f /usr.bin/modstat | |
| parent | 82cbc88d2a7761987127a50eb8d22f72dad97c6a (diff) | |
errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd
Diffstat (limited to 'usr.bin/modstat')
| -rw-r--r-- | usr.bin/modstat/modstat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/modstat/modstat.c b/usr.bin/modstat/modstat.c index b758751964c..0393be56c03 100644 --- a/usr.bin/modstat/modstat.c +++ b/usr.bin/modstat/modstat.c @@ -1,4 +1,4 @@ -/* $NetBSD: modstat.c,v 1.14 1999/08/16 03:02:46 simonb Exp $ */ +/* $NetBSD: modstat.c,v 1.15 2000/07/07 15:13:25 itojun Exp $ */ /* * Copyright (c) 1993 Terrence R. Lambert. @@ -34,7 +34,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: modstat.c,v 1.14 1999/08/16 03:02:46 simonb Exp $"); +__RCSID("$NetBSD: modstat.c,v 1.15 2000/07/07 15:13:25 itojun Exp $"); #endif #include <sys/param.h> @@ -174,7 +174,7 @@ main(argc, argv) */ (void)setegid(egid); if ((devfd = open(_PATH_LKM, O_RDONLY, 0)) == -1) - err(2, _PATH_LKM); + err(2, "%s", _PATH_LKM); /* get rid of our privileges now */ setgid(getgid()); |
