]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: fix 'make checkincludes' warnings
authorKarel Zak <kzak@redhat.com>
Thu, 28 Jul 2011 11:21:00 +0000 (13:21 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 28 Jul 2011 11:21:00 +0000 (13:21 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
fsck/fsck.c
include/sysfs.h
lib/loopdev.c
lib/procutils.c
login-utils/checktty.c
sys-utils/mountpoint.c

index 91533675dfd66b9035486e1338e0f2bb53cd9c0b..52b9d9d7acd21de713f26fa9e7e295e6595303c8 100644 (file)
@@ -29,7 +29,6 @@
 
 #include <sys/types.h>
 #include <sys/wait.h>
-#include <signal.h>
 #include <sys/stat.h>
 #include <sys/file.h>
 #include <fcntl.h>
index a26e0a72e4e7aed8f46558d98ff5bfcdf3ba685e..c1e63527b5bd58c1b5aac56d791723d893cb7fdc 100644 (file)
 #include <stdint.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <dirent.h>
 #include <fcntl.h>
 #include <string.h>
 #include <inttypes.h>
-#include <sys/types.h>
 #include <dirent.h>
 
 struct sysfs_cxt {
index 213063b7f29f79ad2acb9670d118f16133e8a18a..0ef71363f474a5e38df8774e6bb6314e29a8337a 100644 (file)
@@ -21,7 +21,6 @@
 #include <string.h>
 #include <ctype.h>
 #include <fcntl.h>
-#include <errno.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <sys/ioctl.h>
@@ -994,7 +993,6 @@ char *loopdev_find_by_backing_file(const char *filename, uint64_t offset, int fl
 #ifdef TEST_PROGRAM_LOOPDEV
 #include <errno.h>
 #include <err.h>
-#include <stdlib.h>
 
 static void test_loop_info(const char *device, int flags)
 {
index 2ab322522f7a01e0e1cb559b0ed9a54ca71688e7..52e9ee383e962711868c37088a9fc082a8c5b73f 100644 (file)
@@ -97,8 +97,6 @@ int proc_next_tid(struct proc_tasks *tasks, pid_t *tid)
 
 #ifdef TEST_PROGRAM
 
-#include "c.h"
-
 int main(int argc, char *argv[])
 {
        pid_t tid, pid;
index 71f524b923df10894608d122227019edf6c3408d..14f3ee1dd94286fed0ee2fcc2244aabe42e2e25d 100644 (file)
@@ -19,9 +19,7 @@
 #include <time.h>
 #include <sys/stat.h>
 #include <netdb.h>
-#include <sys/socket.h>
 #include <syslog.h>
-#include <netinet/in.h>
 #include <sys/socket.h>
 #include <sys/un.h>
 #include <ctype.h>
index 92d2830549b9ce51e2621870616f373770518282..6fa26d0d731beb0c7a7a4c4e33dd011971694a88 100644 (file)
@@ -31,8 +31,6 @@
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <unistd.h>
-
 
 #include <libmount.h>