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 | |
parent | 3cd8a7f9ace11c787b18749cd13c73fb4d451029 (diff) |
minor tweaking; andrushock@korovino.net
Diffstat (limited to 'sbin/modunload')
-rw-r--r-- | sbin/modunload/modunload.8 | 3 | ||||
-rw-r--r-- | sbin/modunload/modunload.c | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/sbin/modunload/modunload.8 b/sbin/modunload/modunload.8 index 5f147c9ed61..eb02fabe132 100644 --- a/sbin/modunload/modunload.8 +++ b/sbin/modunload/modunload.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: modunload.8,v 1.10 2002/01/09 22:22:56 ericj Exp $ +.\" $OpenBSD: modunload.8,v 1.11 2003/01/18 23:30:20 deraadt Exp $ .\" $NetBSD: modunload.8,v 1.3 1995/03/18 14:56:49 cgd Exp $ .\" .\" Copyright (c) 1993 Christopher G. Demetriou @@ -36,6 +36,7 @@ .Nm modunload .Op Fl i Ar id .Op Fl n Ar name +.Op Fl p Ar postunload .Sh DESCRIPTION The .Nm 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); |