diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-08-17 09:13:17 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-08-17 09:13:17 +0000 |
commit | 63b7a98cc57e3a3fbf4e70bcd27a4eb65721c359 (patch) | |
tree | 04f5f18255e1ed724e1267f93be97b3001966d2b /usr.bin/modstat | |
parent | fe89691a2e6a46dc13e58dde591c3c37ac355e5c (diff) |
More <sys/file.h> vs. <fcntl.h> and open() flags fixes.
Diffstat (limited to 'usr.bin/modstat')
-rw-r--r-- | usr.bin/modstat/modstat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/modstat/modstat.c b/usr.bin/modstat/modstat.c index 0f76a0de171..884e9282dc7 100644 --- a/usr.bin/modstat/modstat.c +++ b/usr.bin/modstat/modstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: modstat.c,v 1.11 1998/07/06 18:42:46 deraadt Exp $ */ +/* $OpenBSD: modstat.c,v 1.12 1999/08/17 09:13:15 millert Exp $ */ /* * Copyright (c) 1993 Terrence R. Lambert. @@ -38,11 +38,11 @@ #include <sys/conf.h> #include <sys/mount.h> #include <sys/lkm.h> -#include <sys/file.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <err.h> +#include <fcntl.h> #include <string.h> #include <a.out.h> #include <errno.h> @@ -158,7 +158,7 @@ main(argc, argv) * Open the virtual device device driver for exclusive use (needed * to ioctl() to retrive the loaded module(s) status). */ - if ((devfd = open(_PATH_LKM, O_RDONLY, 0)) == -1) + if ((devfd = open(_PATH_LKM, O_RDONLY)) == -1) err(2, _PATH_LKM); setegid(getgid()); |