summaryrefslogtreecommitdiff
path: root/usr.bin/finger
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-08-17 09:13:17 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-08-17 09:13:17 +0000
commit63b7a98cc57e3a3fbf4e70bcd27a4eb65721c359 (patch)
tree04f5f18255e1ed724e1267f93be97b3001966d2b /usr.bin/finger
parentfe89691a2e6a46dc13e58dde591c3c37ac355e5c (diff)
More <sys/file.h> vs. <fcntl.h> and open() flags fixes.
Diffstat (limited to 'usr.bin/finger')
-rw-r--r--usr.bin/finger/util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/finger/util.c b/usr.bin/finger/util.c
index df7bc600a5b..7eeaf066450 100644
--- a/usr.bin/finger/util.c
+++ b/usr.bin/finger/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.10 1998/07/10 15:45:19 mickey Exp $ */
+/* $OpenBSD: util.c,v 1.11 1999/08/17 09:13:15 millert Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -39,14 +39,13 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)util.c 5.14 (Berkeley) 1/17/91";*/
-static char rcsid[] = "$OpenBSD: util.c,v 1.10 1998/07/10 15:45:19 mickey Exp $";
+static char rcsid[] = "$OpenBSD: util.c,v 1.11 1999/08/17 09:13:15 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
#include <sys/uio.h>
#include <sys/param.h>
#include <sys/stat.h>
-#include <sys/file.h>
#include <err.h>
#include <stdio.h>
#include <stdlib.h>
@@ -54,6 +53,7 @@ static char rcsid[] = "$OpenBSD: util.c,v 1.10 1998/07/10 15:45:19 mickey Exp $"
#include <string.h>
#include <paths.h>
#include <errno.h>
+#include <fcntl.h>
#include <unistd.h>
#include <vis.h>
#include <err.h>
@@ -189,7 +189,7 @@ enter_lastlog(pn)
/* some systems may not maintain lastlog, don't report errors. */
if (!opened) {
- fd = open(_PATH_LASTLOG, O_RDONLY, 0);
+ fd = open(_PATH_LASTLOG, O_RDONLY);
opened = 1;
}
if (fd == -1 ||