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/modload/modload.c | |
parent | 3cd8a7f9ace11c787b18749cd13c73fb4d451029 (diff) |
minor tweaking; andrushock@korovino.net
Diffstat (limited to 'sbin/modload/modload.c')
-rw-r--r-- | sbin/modload/modload.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sbin/modload/modload.c b/sbin/modload/modload.c index cb9a120b97b..be45711e3aa 100644 --- a/sbin/modload/modload.c +++ b/sbin/modload/modload.c @@ -1,4 +1,4 @@ -/* $OpenBSD: modload.c,v 1.36 2002/12/11 18:28:22 deraadt Exp $ */ +/* $OpenBSD: modload.c,v 1.37 2003/01/18 23:30:20 deraadt Exp $ */ /* $NetBSD: modload.c,v 1.30 2001/11/08 15:33:15 christos Exp $ */ /* @@ -40,6 +40,7 @@ #include <sys/lkm.h> #include <sys/stat.h> #include <sys/file.h> + #include <err.h> #include <errno.h> #include <stdio.h> @@ -47,13 +48,13 @@ #include <string.h> #include <unistd.h> #include <nlist.h> + +#include "modload.h" #include "pathnames.h" #define TRUE 1 #define FALSE 0 -#include "modload.h" - #ifndef DFLT_ENTRY #define DFLT_ENTRY "xxxinit" #endif /* !DFLT_ENTRY */ @@ -293,7 +294,7 @@ main(int argc, char *argv[]) * kernel). */ if ((devfd = open(_PATH_LKM, O_RDWR, 0)) == -1) - err(3, _PATH_LKM); + err(3, "%s", _PATH_LKM); fileopen |= DEV_OPEN; strncpy(modout, modobj, sizeof(modout) - 1); |