aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2009-08-26 19:27:49 +0000
committerBill Meier <wmeier@newsguy.com>2009-08-26 19:27:49 +0000
commit94f28dd8f93f5fdbc08adcd75ff1b9ed951ab125 (patch)
tree7d972bab4738dca3d0d81e46e07299cc42fae615
parent70416bc4a356605d91bb9d67f8f9b58f3fd3c9cf (diff)
(FWIW) One step towards including stdio.h & stdlib.h only when req'd.
svn path=/trunk/; revision=29568
-rw-r--r--capture.c1
-rw-r--r--color_filters.c2
-rw-r--r--epan/dissectors/packet-bootp.c2
-rw-r--r--epan/dissectors/packet-catapult-dct2000.c1
-rw-r--r--epan/dissectors/packet-fix.c1
-rw-r--r--epan/dissectors/packet-http.c1
-rw-r--r--epan/dissectors/packet-kismet.c3
-rw-r--r--epan/dissectors/packet-ldss.c4
-rw-r--r--epan/dissectors/packet-memcache.c2
-rw-r--r--epan/dissectors/packet-mgcp.c1
-rw-r--r--epan/dissectors/packet-nfs.c3
-rw-r--r--epan/dissectors/packet-pop.c2
-rw-r--r--epan/dissectors/packet-quakeworld.c2
-rw-r--r--epan/dissectors/packet-radius.c1
-rw-r--r--epan/dissectors/packet-rlogin.c2
-rw-r--r--epan/dissectors/packet-rtcp.c2
-rw-r--r--epan/dissectors/packet-rtsp.c2
-rw-r--r--epan/dissectors/packet-sdp.c1
-rw-r--r--epan/dissectors/packet-ssh.c2
-rw-r--r--epan/dissectors/packet-tftp.c1
-rw-r--r--epan/dissectors/packet-user_encap.c1
-rw-r--r--epan/ftypes/ftype-bytes.c1
-rw-r--r--epan/ftypes/ftype-double.c2
-rw-r--r--epan/ftypes/ftype-integer.c2
-rw-r--r--epan/ftypes/ftype-string.c1
-rw-r--r--epan/ftypes/ftype-time.c1
-rw-r--r--epan/ftypes/ftype-tvbuff.c1
-rw-r--r--epan/plugins.c3
-rw-r--r--epan/prefs.c1
-rw-r--r--epan/req_resp_hdrs.c4
-rw-r--r--fileset.c1
-rw-r--r--gtk/rtp_stream.c2
-rw-r--r--gtk/rtp_stream_dlg.c2
-rw-r--r--packet-range.c1
-rw-r--r--plugins/wimaxasncp/packet-wimaxasncp.c1
-rw-r--r--proto_hier_stats.c2
-rw-r--r--tap-rtp-common.c1
37 files changed, 48 insertions, 15 deletions
diff --git a/capture.c b/capture.c
index 4471b41..d6461ee 100644
--- a/capture.c
+++ b/capture.c
@@ -32,6 +32,7 @@
#include <unistd.h>
#endif
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
diff --git a/color_filters.c b/color_filters.c
index c303691..eee30e1 100644
--- a/color_filters.c
+++ b/color_filters.c
@@ -30,6 +30,8 @@
#endif
#include <glib.h>
+
+#include <stdio.h>
#include <ctype.h>
#include <string.h>
diff --git a/epan/dissectors/packet-bootp.c b/epan/dissectors/packet-bootp.c
index 96beacd..396de3e 100644
--- a/epan/dissectors/packet-bootp.c
+++ b/epan/dissectors/packet-bootp.c
@@ -76,6 +76,8 @@
# include "config.h"
#endif
+#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <ctype.h>
diff --git a/epan/dissectors/packet-catapult-dct2000.c b/epan/dissectors/packet-catapult-dct2000.c
index 4ab35fe..94f2ae7 100644
--- a/epan/dissectors/packet-catapult-dct2000.c
+++ b/epan/dissectors/packet-catapult-dct2000.c
@@ -28,6 +28,7 @@
#include <glib.h>
+#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <epan/packet.h>
diff --git a/epan/dissectors/packet-fix.c b/epan/dissectors/packet-fix.c
index e7d0b41..07f1cc3 100644
--- a/epan/dissectors/packet-fix.c
+++ b/epan/dissectors/packet-fix.c
@@ -31,6 +31,7 @@
# include "config.h"
#endif
+#include <stdlib.h>
#include <string.h>
#include <epan/packet.h>
#include <epan/expert.h>
diff --git a/epan/dissectors/packet-http.c b/epan/dissectors/packet-http.c
index d848f81..6495df0 100644
--- a/epan/dissectors/packet-http.c
+++ b/epan/dissectors/packet-http.c
@@ -34,6 +34,7 @@
#include "config.h"
#endif
+#include <stdlib.h>
#include <string.h>
#include <ctype.h>
diff --git a/epan/dissectors/packet-kismet.c b/epan/dissectors/packet-kismet.c
index 56c0510..3e88a2b 100644
--- a/epan/dissectors/packet-kismet.c
+++ b/epan/dissectors/packet-kismet.c
@@ -29,8 +29,7 @@
# include "config.h"
#endif
-#include <stdio.h>
-
+#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <epan/packet.h>
diff --git a/epan/dissectors/packet-ldss.c b/epan/dissectors/packet-ldss.c
index f4328bf..5bc5f4b 100644
--- a/epan/dissectors/packet-ldss.c
+++ b/epan/dissectors/packet-ldss.c
@@ -40,8 +40,10 @@
#include "config.h"
#endif
-#include <math.h>
#include <glib.h>
+
+#include <stdlib.h>
+#include <math.h>
#include <string.h>
#include <epan/packet.h>
#include <epan/conversation.h>
diff --git a/epan/dissectors/packet-memcache.c b/epan/dissectors/packet-memcache.c
index 9b2c7f6..870eee2 100644
--- a/epan/dissectors/packet-memcache.c
+++ b/epan/dissectors/packet-memcache.c
@@ -34,6 +34,8 @@
#include "config.h"
#endif
+#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <ctype.h>
diff --git a/epan/dissectors/packet-mgcp.c b/epan/dissectors/packet-mgcp.c
index 6c680ad..f804c51 100644
--- a/epan/dissectors/packet-mgcp.c
+++ b/epan/dissectors/packet-mgcp.c
@@ -37,6 +37,7 @@
#include "config.h"
#endif
+#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <epan/packet.h>
diff --git a/epan/dissectors/packet-nfs.c b/epan/dissectors/packet-nfs.c
index f7f19ef..db04ea4 100644
--- a/epan/dissectors/packet-nfs.c
+++ b/epan/dissectors/packet-nfs.c
@@ -30,10 +30,9 @@
#include "config.h"
#endif
-
+#include <stdlib.h>
#include <string.h>
-
#include "packet-rpc.h"
#include "packet-nfs.h"
#include <epan/prefs.h>
diff --git a/epan/dissectors/packet-pop.c b/epan/dissectors/packet-pop.c
index dd2c637..4f766fc 100644
--- a/epan/dissectors/packet-pop.c
+++ b/epan/dissectors/packet-pop.c
@@ -30,7 +30,7 @@
# include "config.h"
#endif
-#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <glib.h>
diff --git a/epan/dissectors/packet-quakeworld.c b/epan/dissectors/packet-quakeworld.c
index 446c9d5..9040490 100644
--- a/epan/dissectors/packet-quakeworld.c
+++ b/epan/dissectors/packet-quakeworld.c
@@ -32,6 +32,8 @@
#endif
#include <glib.h>
+
+#include <stdlib.h>
#include <string.h>
#include <epan/packet.h>
#include <epan/prefs.h>
diff --git a/epan/dissectors/packet-radius.c b/epan/dissectors/packet-radius.c
index f158eaa..d6ea5d2 100644
--- a/epan/dissectors/packet-radius.c
+++ b/epan/dissectors/packet-radius.c
@@ -51,6 +51,7 @@
#include "config.h"
#endif
+#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
diff --git a/epan/dissectors/packet-rlogin.c b/epan/dissectors/packet-rlogin.c
index c300811..124d303 100644
--- a/epan/dissectors/packet-rlogin.c
+++ b/epan/dissectors/packet-rlogin.c
@@ -29,7 +29,7 @@
# include "config.h"
#endif
-#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <glib.h>
diff --git a/epan/dissectors/packet-rtcp.c b/epan/dissectors/packet-rtcp.c
index 9f047e2..dcb5d30 100644
--- a/epan/dissectors/packet-rtcp.c
+++ b/epan/dissectors/packet-rtcp.c
@@ -55,7 +55,7 @@
#include <glib.h>
#include <epan/packet.h>
-#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "packet-rtcp.h"
diff --git a/epan/dissectors/packet-rtsp.c b/epan/dissectors/packet-rtsp.c
index ec7870a..092f25d 100644
--- a/epan/dissectors/packet-rtsp.c
+++ b/epan/dissectors/packet-rtsp.c
@@ -31,9 +31,9 @@
#include "config.h"
+#include <stdio.h>
#include <string.h>
#include <ctype.h>
-#include <stdlib.h>
#include <epan/prefs.h>
diff --git a/epan/dissectors/packet-sdp.c b/epan/dissectors/packet-sdp.c
index ef0a027..caa91e0 100644
--- a/epan/dissectors/packet-sdp.c
+++ b/epan/dissectors/packet-sdp.c
@@ -28,6 +28,7 @@
#include "config.h"
+#include <stdlib.h>
#include <string.h>
#include <ctype.h>
diff --git a/epan/dissectors/packet-ssh.c b/epan/dissectors/packet-ssh.c
index cce7b34..de1955f 100644
--- a/epan/dissectors/packet-ssh.c
+++ b/epan/dissectors/packet-ssh.c
@@ -35,9 +35,7 @@
# include "config.h"
#endif
-#if HAVE_STDLIB_H
#include <stdlib.h>
-#endif
#include <string.h>
#include <glib.h>
#include <epan/packet.h>
diff --git a/epan/dissectors/packet-tftp.c b/epan/dissectors/packet-tftp.c
index 6183b25..d3bb5df 100644
--- a/epan/dissectors/packet-tftp.c
+++ b/epan/dissectors/packet-tftp.c
@@ -45,6 +45,7 @@
#endif
#include <glib.h>
+#include <stdlib.h>
#include <string.h>
#include <epan/packet.h>
#include <epan/conversation.h>
diff --git a/epan/dissectors/packet-user_encap.c b/epan/dissectors/packet-user_encap.c
index baa385e..6f3a0d1 100644
--- a/epan/dissectors/packet-user_encap.c
+++ b/epan/dissectors/packet-user_encap.c
@@ -28,6 +28,7 @@
# include "config.h"
#endif
+#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <epan/packet.h>
diff --git a/epan/ftypes/ftype-bytes.c b/epan/ftypes/ftype-bytes.c
index c8d33a1..c5cf88d 100644
--- a/epan/ftypes/ftype-bytes.c
+++ b/epan/ftypes/ftype-bytes.c
@@ -24,6 +24,7 @@
#include "config.h"
#endif
+#include <stdio.h>
#include <ftypes-int.h>
#include <string.h>
#include <ctype.h>
diff --git a/epan/ftypes/ftype-double.c b/epan/ftypes/ftype-double.c
index ff2f4b7..537a1b2 100644
--- a/epan/ftypes/ftype-double.c
+++ b/epan/ftypes/ftype-double.c
@@ -24,8 +24,8 @@
#include "config.h"
#endif
+#include <stdio.h>
#include <ftypes-int.h>
-#include <stdlib.h>
#include <math.h>
#include <errno.h>
#include <float.h>
diff --git a/epan/ftypes/ftype-integer.c b/epan/ftypes/ftype-integer.c
index d12b38e..a45169e 100644
--- a/epan/ftypes/ftype-integer.c
+++ b/epan/ftypes/ftype-integer.c
@@ -24,7 +24,7 @@
#include "config.h"
#endif
-#include <stdlib.h>
+#include <stdio.h>
#include <errno.h>
#include "ftypes-int.h"
#include <epan/addr_resolv.h>
diff --git a/epan/ftypes/ftype-string.c b/epan/ftypes/ftype-string.c
index 742400f..18754d7 100644
--- a/epan/ftypes/ftype-string.c
+++ b/epan/ftypes/ftype-string.c
@@ -24,6 +24,7 @@
#include "config.h"
#endif
+#include <stdio.h>
#include <ftypes-int.h>
#include <string.h>
diff --git a/epan/ftypes/ftype-time.c b/epan/ftypes/ftype-time.c
index ed06b47..15b33d2 100644
--- a/epan/ftypes/ftype-time.c
+++ b/epan/ftypes/ftype-time.c
@@ -24,6 +24,7 @@
#include "config.h"
#endif
+#include <stdio.h>
#include <ctype.h>
#include <string.h>
diff --git a/epan/ftypes/ftype-tvbuff.c b/epan/ftypes/ftype-tvbuff.c
index bd81508..418961d 100644
--- a/epan/ftypes/ftype-tvbuff.c
+++ b/epan/ftypes/ftype-tvbuff.c
@@ -24,6 +24,7 @@
#include "config.h"
#endif
+#include <stdio.h>
#include <ftypes-int.h>
#include <string.h>
diff --git a/epan/plugins.c b/epan/plugins.c
index 06f5e9b..ac7f7ec 100644
--- a/epan/plugins.c
+++ b/epan/plugins.c
@@ -40,8 +40,9 @@
#include <direct.h>
#endif
-#include <string.h>
+#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#ifdef HAVE_UNISTD_H
diff --git a/epan/prefs.c b/epan/prefs.c
index b80ac49..85b73e6 100644
--- a/epan/prefs.c
+++ b/epan/prefs.c
@@ -37,6 +37,7 @@
#include <glib.h>
+#include <stdio.h>
#include <epan/filesystem.h>
#include <epan/address.h>
#include <epan/addr_resolv.h>
diff --git a/epan/req_resp_hdrs.c b/epan/req_resp_hdrs.c
index 8e548d1..d6f1329 100644
--- a/epan/req_resp_hdrs.c
+++ b/epan/req_resp_hdrs.c
@@ -28,9 +28,11 @@
#endif
#include <glib.h>
+#include <stdio.h>
+#include <string.h>
+
#include <epan/packet.h>
#include <epan/strutil.h>
-#include <string.h>
#include <epan/req_resp_hdrs.h>
diff --git a/fileset.c b/fileset.c
index f3697e8..55e2276 100644
--- a/fileset.c
+++ b/fileset.c
@@ -46,6 +46,7 @@
# include <sys/wait.h>
#endif
+#include <stdio.h>
#include <string.h>
#include <ctype.h>
diff --git a/gtk/rtp_stream.c b/gtk/rtp_stream.c
index 8256590..dd4d135 100644
--- a/gtk/rtp_stream.c
+++ b/gtk/rtp_stream.c
@@ -28,6 +28,8 @@
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
+
+#include <stdio.h>
#include <string.h>
#ifdef HAVE_FCNTL_H
diff --git a/gtk/rtp_stream_dlg.c b/gtk/rtp_stream_dlg.c
index 4eeb0b2..27e86e3b 100644
--- a/gtk/rtp_stream_dlg.c
+++ b/gtk/rtp_stream_dlg.c
@@ -28,6 +28,8 @@
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
+
+#include <stdio.h>
#include <string.h>
#include <locale.h>
diff --git a/packet-range.c b/packet-range.c
index 6d98b12..2938539 100644
--- a/packet-range.c
+++ b/packet-range.c
@@ -29,6 +29,7 @@
#include "config.h"
#endif
+#include <stdio.h>
#include <string.h>
#include <ctype.h>
diff --git a/plugins/wimaxasncp/packet-wimaxasncp.c b/plugins/wimaxasncp/packet-wimaxasncp.c
index 2299d2f..135d587 100644
--- a/plugins/wimaxasncp/packet-wimaxasncp.c
+++ b/plugins/wimaxasncp/packet-wimaxasncp.c
@@ -32,6 +32,7 @@
# include "config.h"
#endif
+#include <stdio.h>
#include <string.h>
#include <ctype.h>
diff --git a/proto_hier_stats.c b/proto_hier_stats.c
index de8510e..724caf5 100644
--- a/proto_hier_stats.c
+++ b/proto_hier_stats.c
@@ -26,6 +26,8 @@
# include "config.h"
#endif
+#include <stdio.h>
+
#include "globals.h"
#include "proto_hier_stats.h"
#include "progress_dlg.h"
diff --git a/tap-rtp-common.c b/tap-rtp-common.c
index 43f87ff..a57c7c3 100644
--- a/tap-rtp-common.c
+++ b/tap-rtp-common.c
@@ -33,6 +33,7 @@
# include "config.h"
#endif
+#include <stdio.h>
#include <math.h>
#include "globals.h"