diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-11-09 12:26:18 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-11-09 16:05:45 +0000 |
commit | fcda6819124c396e23a3eb09be9d3175f376abeb (patch) | |
tree | d40c81f583ba6e17887ba998d50acef9453d0f10 /randpkt.c | |
parent | 2fe0fc5a1afbbd8218190736decbecec14582691 (diff) |
randpkt: fix no previous prototype for 'randpkt_*' [-Wmissing-prototypes]
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>
Diffstat (limited to 'randpkt.c')
-rw-r--r-- | randpkt.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |