summaryrefslogtreecommitdiff
path: root/usr.bin/finger
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2018-04-26 12:42:52 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2018-04-26 12:42:52 +0000
commit5f88f64e4ca00c8a8b07625c4a11ed0fde2f230c (patch)
treec1262035d78c25f24c241d2f8eac07fffcfe6e72 /usr.bin/finger
parent883ddd7e209fd33be14c5a0bd94ea39a7e31c4f4 (diff)
Use <fcntl.h> instead of <sys/file.h> for open() and friends.
Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
Diffstat (limited to 'usr.bin/finger')
-rw-r--r--usr.bin/finger/finger.c3
-rw-r--r--usr.bin/finger/lprint.c6
2 files changed, 2 insertions, 7 deletions
diff --git a/usr.bin/finger/finger.c b/usr.bin/finger/finger.c
index aad0f07a107..3178b946ed8 100644
--- a/usr.bin/finger/finger.c
+++ b/usr.bin/finger/finger.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: finger.c,v 1.26 2015/11/03 05:13:35 mmcc Exp $ */
+/* $OpenBSD: finger.c,v 1.27 2018/04/26 12:42:51 guenther Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -56,7 +56,6 @@
* well as home directory, shell, mail info, and .plan/.project files.
*/
-#include <sys/file.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/usr.bin/finger/lprint.c b/usr.bin/finger/lprint.c
index b3dce893c89..03de1aa5cf3 100644
--- a/usr.bin/finger/lprint.c
+++ b/usr.bin/finger/lprint.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lprint.c,v 1.12 2015/03/15 00:41:28 millert Exp $ */
+/* $OpenBSD: lprint.c,v 1.13 2018/04/26 12:42:51 guenther Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -32,10 +32,6 @@
* SUCH DAMAGE.
*/
-#include <sys/types.h>
-#include <sys/file.h>
-#include <sys/stat.h>
-#include <sys/time.h>
#include <stdio.h>
#include <string.h>
#include <time.h>