]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
login-utils: include fix
authorSami Kerola <kerolasa@iki.fi>
Sat, 25 Jun 2011 10:36:38 +0000 (12:36 +0200)
committerSami Kerola <kerolasa@iki.fi>
Sat, 25 Jun 2011 10:36:38 +0000 (12:36 +0200)
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>
login-utils/checktty.c
login-utils/islocal.c

index 69828281bad6d1a421d2e94ceeaf2472076f915e..71f524b923df10894608d122227019edf6c3408d 100644 (file)
@@ -7,7 +7,6 @@
 
 */
 
-#include <sys/types.h>
 #include <sys/param.h>
 
 #include <pwd.h>
 #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
index 762a4e9900db8006e3e276d326da9cfce8af611b..39a74c6a8dc27eb628718e46659a5990e738a90e 100644 (file)
@@ -21,7 +21,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
+#include <stddef.h>
 
 #include "nls.h"
 #include "pathnames.h"