diff options
author | Sami Kerola | 2011-06-25 12:36:38 +0200 |
---|---|---|
committer | Sami Kerola | 2011-06-25 12:36:38 +0200 |
commit | 27ce27726468a18015da38e12b13d056122abe04 (patch) | |
tree | e3a6d522a73411ea8648ff3f0fd0929b4afded11 /login-utils/checktty.c | |
parent | checktty: fix unused parameters (diff) | |
download | kernel-qcow2-util-linux-27ce27726468a18015da38e12b13d056122abe04.tar.gz kernel-qcow2-util-linux-27ce27726468a18015da38e12b13d056122abe04.tar.xz kernel-qcow2-util-linux-27ce27726468a18015da38e12b13d056122abe04.zip |
login-utils: include fix
Add missing and remove unneeded includes as reported by:
http://code.google.com/p/include-what-you-use/
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'login-utils/checktty.c')
-rw-r--r-- | login-utils/checktty.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/login-utils/checktty.c b/login-utils/checktty.c index 69828281b..71f524b92 100644 --- a/login-utils/checktty.c +++ b/login-utils/checktty.c @@ -7,7 +7,6 @@ */ -#include <sys/types.h> #include <sys/param.h> #include <pwd.h> @@ -19,10 +18,12 @@ #include <unistd.h> #include <time.h> #include <sys/stat.h> -#include <malloc.h> #include <netdb.h> -#include <sys/syslog.h> #include <sys/socket.h> +#include <syslog.h> +#include <netinet/in.h> +#include <sys/socket.h> +#include <sys/un.h> #include <ctype.h> #include <limits.h> #include <netinet/in.h> @@ -36,7 +37,6 @@ #include "pathnames.h" #include "login.h" #include "strutils.h" -#include "c.h" #ifndef TTY_MAJOR #define TTY_MAJOR 4 |