summaryrefslogtreecommitdiffstats
path: root/libexec/login_reject/login_reject.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2018-04-26 12:42:50 +0000
committerguenther <guenther@openbsd.org>2018-04-26 12:42:50 +0000
commitf414793931f0f39a413874f9e342e33d9fd35eac (patch)
tree2f4a2abfbaa234b7cf3ecdbab222b87a5d01ccb9 /libexec/login_reject/login_reject.c
parentDo not try getnetbyname(3) if gethostbyname(3) returns no result. (diff)
downloadwireguard-openbsd-f414793931f0f39a413874f9e342e33d9fd35eac.tar.xz
wireguard-openbsd-f414793931f0f39a413874f9e342e33d9fd35eac.zip
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 'libexec/login_reject/login_reject.c')
-rw-r--r--libexec/login_reject/login_reject.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/libexec/login_reject/login_reject.c b/libexec/login_reject/login_reject.c
index 3927bc33bbd..f3e3499b92b 100644
--- a/libexec/login_reject/login_reject.c
+++ b/libexec/login_reject/login_reject.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: login_reject.c,v 1.16 2016/09/03 10:51:26 gsoares Exp $ */
+/* $OpenBSD: login_reject.c,v 1.17 2018/04/26 12:42:51 guenther Exp $ */
/*-
* Copyright (c) 1995 Berkeley Software Design, Inc. All rights reserved.
@@ -33,19 +33,11 @@
*
* BSDI $From: login_reject.c,v 1.5 1996/08/22 20:43:11 prb Exp $
*/
-#include <sys/stat.h>
-#include <sys/time.h>
+
#include <sys/resource.h>
-#include <sys/file.h>
-#include <sys/wait.h>
-#include <err.h>
-#include <errno.h>
#include <login_cap.h>
-#include <pwd.h>
#include <readpassphrase.h>
-#include <signal.h>
-#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>