diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-01-18 23:30:21 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-01-18 23:30:21 +0000 |
commit | 8807143002db319427334f087e2da0592e31b2f3 (patch) | |
tree | ff85778e7adfc7f87c9ed39240118af1a605ee09 /sbin/modunload/modunload.c | |
parent | 3cd8a7f9ace11c787b18749cd13c73fb4d451029 (diff) |
minor tweaking; andrushock@korovino.net
Diffstat (limited to 'sbin/modunload/modunload.c')
-rw-r--r-- | sbin/modunload/modunload.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/modunload/modunload.c b/sbin/modunload/modunload.c index 32d533114dc..d7d167987d4 100644 --- a/sbin/modunload/modunload.c +++ b/sbin/modunload/modunload.c @@ -1,4 +1,4 @@ -/* $OpenBSD: modunload.c,v 1.11 2002/12/11 16:58:39 deraadt Exp $ */ +/* $OpenBSD: modunload.c,v 1.12 2003/01/18 23:30:20 deraadt Exp $ */ /* $NetBSD: modunload.c,v 1.9 1995/05/28 05:23:05 jtc Exp $ */ /* @@ -38,6 +38,7 @@ #include <sys/conf.h> #include <sys/mount.h> #include <sys/lkm.h> + #include <a.out.h> #include <err.h> #include <errno.h> @@ -46,6 +47,7 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> + #include "pathnames.h" static int devfd; @@ -105,7 +107,7 @@ main(int argc, char *argv[]) * to ioctl() to retrive the loaded module(s) status). */ if ((devfd = open(_PATH_LKM, O_RDWR, 0)) == -1) - err(2, _PATH_LKM); + err(2, "%s", _PATH_LKM); atexit(cleanup); |