From fcda6819124c396e23a3eb09be9d3175f376abeb Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Mon, 9 Nov 2015 12:26:18 +0100 Subject: randpkt: fix no previous prototype for 'randpkt_*' [-Wmissing-prototypes] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Dario Lombardo Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte Reviewed-by: Michael Mann --- randpkt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/randpkt.c b/randpkt.c index 269aef45a7..82d2a9a26d 100644 --- 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; -- cgit v1.2.1