From 8807143002db319427334f087e2da0592e31b2f3 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 18 Jan 2003 23:30:21 +0000 Subject: minor tweaking; andrushock@korovino.net --- usr.bin/modstat/modstat.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'usr.bin/modstat') 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 #include #include -#include -#include -#include + +#include #include +#include #include +#include +#include #include -#include -#include +#include + #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()); -- cgit v1.2.3