[klibc] [PATCH 4/4] lib: cleanup unused includes

maximilian attems max at stro.at
Sat Nov 20 14:31:48 PST 2010


Some stdarg.h, errno.h and sys/ioctl.h for the good mix.

Signed-off-by: maximilian attems <max at stro.at>
---
 usr/klibc/execv.c        |    1 -
 usr/klibc/execvp.c       |    1 -
 usr/klibc/fgetc.c        |    1 -
 usr/klibc/getpt.c        |    1 -
 usr/klibc/posix_openpt.c |    1 -
 usr/klibc/system.c       |    1 -
 6 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/usr/klibc/execv.c b/usr/klibc/execv.c
index 29e5737..6894e79 100644
--- a/usr/klibc/execv.c
+++ b/usr/klibc/execv.c
@@ -2,7 +2,6 @@
  * execv.c
  */
 
-#include <stdarg.h>
 #include <unistd.h>
 
 int execv(const char *path, char *const *argv)
diff --git a/usr/klibc/execvp.c b/usr/klibc/execvp.c
index 5a9f31d..7d8e2bc 100644
--- a/usr/klibc/execvp.c
+++ b/usr/klibc/execvp.c
@@ -2,7 +2,6 @@
  * execvp.c
  */
 
-#include <stdarg.h>
 #include <unistd.h>
 
 int execvp(const char *path, char *const *argv)
diff --git a/usr/klibc/fgetc.c b/usr/klibc/fgetc.c
index 9092eae..5b136b1 100644
--- a/usr/klibc/fgetc.c
+++ b/usr/klibc/fgetc.c
@@ -9,7 +9,6 @@
 #include <stdio.h>
 #include <unistd.h>
 #include <stdlib.h>
-#include <errno.h>
 
 int fgetc(FILE *f)
 {
diff --git a/usr/klibc/getpt.c b/usr/klibc/getpt.c
index 76ca371..8d2a536 100644
--- a/usr/klibc/getpt.c
+++ b/usr/klibc/getpt.c
@@ -9,7 +9,6 @@
 #include <unistd.h>
 #include <termios.h>
 #include <fcntl.h>
-#include <sys/ioctl.h>
 
 int getpt(void)
 {
diff --git a/usr/klibc/posix_openpt.c b/usr/klibc/posix_openpt.c
index 79e67b6..794ca46 100644
--- a/usr/klibc/posix_openpt.c
+++ b/usr/klibc/posix_openpt.c
@@ -7,7 +7,6 @@
 #include <unistd.h>
 #include <termios.h>
 #include <fcntl.h>
-#include <sys/ioctl.h>
 
 int posix_openpt(int oflag)
 {
diff --git a/usr/klibc/system.c b/usr/klibc/system.c
index 4478b21..13e9fbe 100644
--- a/usr/klibc/system.c
+++ b/usr/klibc/system.c
@@ -7,7 +7,6 @@
  * present.
  */
 
-#include <errno.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <signal.h>
-- 
1.7.2.3



More information about the klibc mailing list