summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-01-05 16:06:02 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-01-05 16:06:02 +0200
commit05b2d979e8097d648f91c773f2535a1f6013cb79 (patch)
treef804f407bef4fe2241a5f1fa7b447cfd23893613
parent71b7fb380be6da75bcef1ad68ceea249717158aa (diff)
downloadrpm-05b2d979e8097d648f91c773f2535a1f6013cb79.tar.gz
rpm-05b2d979e8097d648f91c773f2535a1f6013cb79.tar.bz2
rpm-05b2d979e8097d648f91c773f2535a1f6013cb79.zip
Move <stdio.h> includes out of system.h to the places that need it
-rw-r--r--rpmio/rpmmalloc.c1
-rw-r--r--rpmio/rpmsq.c1
-rw-r--r--rpmio/rpmstring.c1
-rw-r--r--system.h2
-rw-r--r--tools/javadeps.c13
5 files changed, 3 insertions, 15 deletions
diff --git a/rpmio/rpmmalloc.c b/rpmio/rpmmalloc.c
index 6c640c858..68aa246c5 100644
--- a/rpmio/rpmmalloc.c
+++ b/rpmio/rpmmalloc.c
@@ -6,6 +6,7 @@
#include <stdlib.h>
#include <string.h>
+#include <stdio.h>
#include "debug.h"
diff --git a/rpmio/rpmsq.c b/rpmio/rpmsq.c
index 3d0563be6..95f5aaa1c 100644
--- a/rpmio/rpmsq.c
+++ b/rpmio/rpmsq.c
@@ -9,6 +9,7 @@
#include <sys/wait.h>
#include <search.h>
#include <errno.h>
+#include <stdio.h>
#if defined(HAVE_PTHREAD_H)
diff --git a/rpmio/rpmstring.c b/rpmio/rpmstring.c
index 68543ce34..82e330501 100644
--- a/rpmio/rpmstring.c
+++ b/rpmio/rpmstring.c
@@ -5,6 +5,7 @@
#include "system.h"
#include <stdarg.h>
+#include <stdio.h>
#include <rpm/rpmstring.h>
#include "debug.h"
diff --git a/system.h b/system.h
index f7cb77558..ac18e16fa 100644
--- 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
diff --git a/tools/javadeps.c b/tools/javadeps.c
index d4474f3e9..d1dcb8b81 100644
--- a/tools/javadeps.c
+++ b/tools/javadeps.c
@@ -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>