Move <stdio.h> includes out of system.h to the places that need it
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 5 Jan 2010 14:06:02 +0000 (16:06 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 5 Jan 2010 14:06:02 +0000 (16:06 +0200)
rpmio/rpmmalloc.c
rpmio/rpmsq.c
rpmio/rpmstring.c
system.h
tools/javadeps.c

index 6c640c8..68aa246 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <stdlib.h>
 #include <string.h>
+#include <stdio.h>
 
 #include "debug.h"
 
index 3d0563b..95f5aaa 100644 (file)
@@ -9,6 +9,7 @@
 #include <sys/wait.h>
 #include <search.h>
 #include <errno.h>
+#include <stdio.h>
 
 #if defined(HAVE_PTHREAD_H)
 
index 68543ce..82e3305 100644 (file)
@@ -5,6 +5,7 @@
 #include "system.h"
 
 #include <stdarg.h>
+#include <stdio.h>
 
 #include <rpm/rpmstring.h>
 #include "debug.h"
index f7cb775..ac18e16 100644 (file)
--- a/system.h
+++ b/system.h
@@ -9,8 +9,6 @@
 #include "config.h"
 #endif
 
-#include <stdio.h>
-
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
 #endif
index d4474f3..d1dcb8b 100644 (file)
@@ -50,21 +50,8 @@ marc@redhat.com and ewt@redhat.com.
    
 */
 
-#include "system.h"
-
-/*
-  these includes are for my use, rpm will use #include "system.h"*
-*/
-
-/*
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-#include <netinet/in.h>
-*/
-
-#include <stdlib.h>
 #include <stdarg.h>
 #include <string.h>
 #include <netdb.h>