aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaximilian attems <max@stro.at>2010-11-20 22:45:01 +0100
committermaximilian attems <max@stro.at>2010-11-20 23:30:13 +0100
commitfcbaed055577fa7c16232d46055156cf6268241a (patch)
treeb119e93d9b27c792bb674ecd507aa7f8bacc0ef6
parentb68e519c2952a276f09aa3464506fd36e133575a (diff)
downloadklibc-fcbaed055577fa7c16232d46055156cf6268241a.tar.gz
[klibc] utils: cleanup unused includes
several errno.h for no good reasons. cleanup losesetup which is not using getopt_long, thus doesn't need getopt.h included. Move stdarg.h include up in losesetup to more proper place. Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r--usr/utils/dmesg.c1
-rw-r--r--usr/utils/losetup.c4
-rw-r--r--usr/utils/mkfifo.c1
-rw-r--r--usr/utils/nuke.c1
-rw-r--r--usr/utils/umount.c1
5 files changed, 1 insertions, 7 deletions
diff --git a/usr/utils/dmesg.c b/usr/utils/dmesg.c
index 61e047ee6ceec..19607132b224b 100644
--- a/usr/utils/dmesg.c
+++ b/usr/utils/dmesg.c
@@ -1,5 +1,4 @@
#include <unistd.h>
-#include <errno.h>
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
diff --git a/usr/utils/losetup.c b/usr/utils/losetup.c
index 1a47fa95869da..59030d7bc75ce 100644
--- a/usr/utils/losetup.c
+++ b/usr/utils/losetup.c
@@ -17,6 +17,7 @@
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/sysmacros.h>
+#include <stdarg.h>
#include <string.h>
#include "loop.h"
@@ -349,9 +350,6 @@ int del_loop (const char *device)
}
-#include <getopt.h>
-#include <stdarg.h>
-
int verbose = 0;
char *progname;
diff --git a/usr/utils/mkfifo.c b/usr/utils/mkfifo.c
index f2ac35f296c3a..5a758b2a2cd44 100644
--- a/usr/utils/mkfifo.c
+++ b/usr/utils/mkfifo.c
@@ -1,6 +1,5 @@
#include <sys/stat.h>
#include <sys/types.h>
-#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <stdio.h>
diff --git a/usr/utils/nuke.c b/usr/utils/nuke.c
index 0a282c8cd9a66..93a04af1cf42c 100644
--- a/usr/utils/nuke.c
+++ b/usr/utils/nuke.c
@@ -32,7 +32,6 @@
* do anything.
*/
-#include <alloca.h>
#include <assert.h>
#include <dirent.h>
#include <errno.h>
diff --git a/usr/utils/umount.c b/usr/utils/umount.c
index 4469297bc2c3b..41275f7bed79c 100644
--- a/usr/utils/umount.c
+++ b/usr/utils/umount.c
@@ -2,7 +2,6 @@
* by rmk
*/
#include <sys/mount.h>
-#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>