In a source file that defines external functions, the header file that
authorGuy Harris <guy@alum.mit.edu>
Tue, 14 Jan 2014 01:44:36 +0000 (01:44 -0000)
committerGuy Harris <guy@alum.mit.edu>
Tue, 14 Jan 2014 01:44:36 +0000 (01:44 -0000)
declares the functions must be included, in order to make sure the
declarations match the function signature.  Make it so.

Said header declares pipe_input_cb_t, so we don't have to do it
ourselves.

svn path=/trunk/; revision=54750

tshark.c

index 53a8764054f014e3d5486584faafc8941db95642..37367453edf3de6ec744e091d5ccfbf4695be164 100644 (file)
--- a/tshark.c
+++ b/tshark.c
@@ -82,6 +82,7 @@
 #include <epan/print.h>
 #include <epan/addr_resolv.h>
 #include "ui/util.h"
+#include "ui/ui_util.h"
 #include "clopts_common.h"
 #include "cmdarg_err.h"
 #include "version_info.h"
@@ -2186,10 +2187,6 @@ main(int argc, char *argv[])
   guint32 packet_count = 0;
 
 
-/* XXX - move to the right position / file */
-/* read from a pipe (callback) */
-typedef gboolean (*pipe_input_cb_t) (gint source, gpointer user_data);
-
 typedef struct pipe_input_tag {
   gint             source;
   gpointer         user_data;