]> err.no Git - util-linux/commitdiff
remove duplicate includes
authorKarel Zak <kzak@redhat.com>
Tue, 4 Jan 2011 21:36:09 +0000 (22:36 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 4 Jan 2011 21:36:09 +0000 (22:36 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/cpuset.c
lib/strutils.c
misc-utils/lsblk.c
mount/lomount.c
shlibs/blkid/src/blkidP.h
shlibs/mount/src/cache.c
shlibs/mount/src/optstr.c
shlibs/mount/src/tab_update.c

index 27b2349886142f833b64082c62d23b21682edbaa..0c483fa5e3b2929cda8f3d300b8d0bf496c08d1b 100644 (file)
@@ -13,7 +13,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
-#include <getopt.h>
 #include <sched.h>
 #include <errno.h>
 #include <string.h>
index 9a59e67b661bfd00f2b2e7d9bc5cafdc13cc38a7..94635b1e8951b34d67def26f92add1810356c17e 100644 (file)
@@ -277,10 +277,6 @@ char *size_to_human_string(uint64_t bytes)
 
 #ifdef TEST_PROGRAM
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <err.h>
-
 int main(int argc, char *argv[])
 {
        uintmax_t size = 0;
index 9d0f0160fb608ebb9c0b0178b16924a1defffe3c..af77c56991cf704730509ded47b3a2ba4e01d0f9 100644 (file)
@@ -23,7 +23,6 @@
 #include <stdio.h>
 #include <errno.h>
 #include <getopt.h>
-#include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <stdint.h>
index 4d99d9f6f374df60c95df0cf84b3c00e98951a34..4d23a615ed7f665c5288d14abf1adeee801aa6bb 100644 (file)
@@ -955,8 +955,6 @@ find_unused_loop_device (void) {
 #include <getopt.h>
 #include <stdarg.h>
 
-#include "strutils.h"
-
 static void
 usage(FILE *f) {
        fprintf(f, _("\nUsage:\n"
index 956a84e2f3f2e9efdbc146379ae7be74690d1d87..ab954e06cf5b265c1a674fbf0214f4f7db702c71 100644 (file)
@@ -19,7 +19,6 @@
 #include <sys/types.h>
 #include <dirent.h>
 #include <sys/stat.h>
-#include <sys/types.h>
 #include <stdio.h>
 #include <stdarg.h>
 #include <stdint.h>
index 0578c0655009fbf2d038c859db99f1c0734cde58..3ed69e1b0fa88af91984998ce4ed56e9ac8802ef 100644 (file)
@@ -19,7 +19,6 @@
 #include <stdlib.h>
 #include <ctype.h>
 #include <limits.h>
-#include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
index 8894dfba680d35ca50f6e353751c4061df1ba8a3..8689dfb64ef5aae9c2127d1fef57e939c2f6ee2f 100644 (file)
@@ -27,8 +27,6 @@
 #include <selinux/context.h>
 #endif
 
-#include <ctype.h>
-
 #include "nls.h"
 #include "mountP.h"
 
index cf32baf15dc794602c10ce19121d5b25d27d851a..fffdd20c4720be02af360088b9d78d1c2cb42399 100644 (file)
@@ -817,8 +817,6 @@ int mnt_update_tab(mnt_update *upd, mnt_lock *lc)
 
 #ifdef TEST_PROGRAM
 
-#include <errno.h>
-
 mnt_lock *lock;
 
 static void lock_fallback(void)