randpkt: fix no previous prototype for 'randpkt_*' [-Wmissing-prototypes]
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Mon, 9 Nov 2015 11:26:18 +0000 (12:26 +0100)
committerMichael Mann <mmann78@netscape.net>
Mon, 9 Nov 2015 16:05:45 +0000 (16:05 +0000)
randpkt.c:556:1: warning: no previous prototype for ‘randpkt_seed’
randpkt.c:610:6: warning: no previous prototype for ‘randpkt_example_init’
randpkt.c:632:6: warning: no previous prototype for ‘randpkt_example_close’
randpkt.c:638:6: warning: no previous prototype for ‘randpkt_loop’

Change-Id: Ieab604a22fa7ebf5c049ab497abd56af0a788d36
Reviewed-on: https://code.wireshark.org/review/11654
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
randpkt.c

index 269aef45a7f50f4fc07d6f070fdb3ecda5b3b3b1..82d2a9a26dcf0eb4c115cb6f60b26ea084423e3e 100644 (file)
--- a/randpkt.c
+++ b/randpkt.c
@@ -552,7 +552,7 @@ int randpkt_parse_type(char *string)
 static void usage(gboolean is_error);
 
 /* Seed the random-number generator */
-void
+static void
 randpkt_seed(void)
 {
        unsigned int    randomness;
@@ -607,7 +607,7 @@ fallback:
 
 static randpkt_example* randpkt_find_example(int type);
 
-void randpkt_example_init(randpkt_example* example, char* produce_filename, int produce_max_bytes)
+static void randpkt_example_init(randpkt_example* example, char* produce_filename, int produce_max_bytes)
 {
        int err;
 
@@ -629,13 +629,13 @@ void randpkt_example_init(randpkt_example* example, char* produce_filename, int
        }
 }
 
-void randpkt_example_close(randpkt_example* example)
+static void randpkt_example_close(randpkt_example* example)
 {
        int err;
        wtap_dump_close(example->dump, &err);
 }
 
-void randpkt_loop(randpkt_example* example, guint64 produce_count)
+static void randpkt_loop(randpkt_example* example, guint64 produce_count)
 {
        guint i;
        int j;