summaryrefslogtreecommitdiff
path: root/usr.bin/modstat
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-01-18 23:30:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-01-18 23:30:21 +0000
commit8807143002db319427334f087e2da0592e31b2f3 (patch)
treeff85778e7adfc7f87c9ed39240118af1a605ee09 /usr.bin/modstat
parent3cd8a7f9ace11c787b18749cd13c73fb4d451029 (diff)
minor tweaking; andrushock@korovino.net
Diffstat (limited to 'usr.bin/modstat')
-rw-r--r--usr.bin/modstat/modstat.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/usr.bin/modstat/modstat.c b/usr.bin/modstat/modstat.c
index 821f2b864de..c42ac481071 100644
--- a/usr.bin/modstat/modstat.c
+++ b/usr.bin/modstat/modstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: modstat.c,v 1.19 2002/12/12 00:00:16 deraadt Exp $ */
+/* $OpenBSD: modstat.c,v 1.20 2003/01/18 23:30:20 deraadt Exp $ */
/*
* Copyright (c) 1993 Terrence R. Lambert.
@@ -38,14 +38,16 @@
#include <sys/conf.h>
#include <sys/mount.h>
#include <sys/lkm.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
+
+#include <a.out.h>
#include <err.h>
+#include <errno.h>
#include <fcntl.h>
+#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
-#include <a.out.h>
-#include <errno.h>
+#include <unistd.h>
+
#include "pathnames.h"
#define POINTERSIZE ((int)(2 * sizeof(void*)))
@@ -59,7 +61,7 @@ static char *type_names[] = {
};
static void
-usage()
+usage(void)
{
extern char *__progname;
@@ -141,7 +143,7 @@ main(argc, argv)
* to ioctl() to retrive the loaded module(s) status).
*/
if ((devfd = open(_PATH_LKM, O_RDONLY)) == -1)
- err(2, _PATH_LKM);
+ err(2, "%s", _PATH_LKM);
setegid(getgid());
setgid(getgid());