diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2018-04-26 12:42:52 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2018-04-26 12:42:52 +0000 |
commit | 5f88f64e4ca00c8a8b07625c4a11ed0fde2f230c (patch) | |
tree | c1262035d78c25f24c241d2f8eac07fffcfe6e72 /libexec/login_chpass | |
parent | 883ddd7e209fd33be14c5a0bd94ea39a7e31c4f4 (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 'libexec/login_chpass')
-rw-r--r-- | libexec/login_chpass/login_chpass.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/libexec/login_chpass/login_chpass.c b/libexec/login_chpass/login_chpass.c index 4afe266d6f7..c82ff4115f5 100644 --- a/libexec/login_chpass/login_chpass.c +++ b/libexec/login_chpass/login_chpass.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login_chpass.c,v 1.20 2015/11/26 19:01:47 deraadt Exp $ */ +/* $OpenBSD: login_chpass.c,v 1.21 2018/04/26 12:42:51 guenther Exp $ */ /*- * Copyright (c) 1995,1996 Berkeley Software Design, Inc. All rights reserved. @@ -33,23 +33,14 @@ * * BSDI $From: login_chpass.c,v 1.3 1996/08/21 21:01:48 prb Exp $ */ -#include <sys/stat.h> -#include <sys/time.h> + #include <sys/resource.h> -#include <sys/file.h> -#include <sys/uio.h> -#include <sys/wait.h> #include <err.h> -#include <errno.h> -#include <pwd.h> -#include <signal.h> -#include <stdio.h> #include <stdlib.h> #include <string.h> #include <syslog.h> #include <unistd.h> -#include <login_cap.h> #define _PATH_LOGIN_LCHPASS "/usr/libexec/auth/login_lchpass" |