From de964cc2a201e442ddcd27f91ed6eef1a096c3b6 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 13 Oct 2015 18:56:11 +0200 Subject: trafgen: Change signature of compile_packets() to match provided types Match two arguments to the respective types provided in its only caller in trafgen.c:main_loop() Signed-off-by: Tobias Klauser --- trafgen_conf.h | 2 +- trafgen_parser.y | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/trafgen_conf.h b/trafgen_conf.h index 01d249d..aee385e 100644 --- a/trafgen_conf.h +++ b/trafgen_conf.h @@ -45,7 +45,7 @@ struct packet_dyn { size_t slen; }; -extern void compile_packets(char *file, int verbose, int cpu, bool invoke_cpp); +extern void compile_packets(char *file, bool verbose, unsigned int cpu, bool invoke_cpp); extern void cleanup_packets(void); #endif /* TRAFGEN_CONF */ diff --git a/trafgen_parser.y b/trafgen_parser.y index 126a819..8eab614 100644 --- a/trafgen_parser.y +++ b/trafgen_parser.y @@ -592,7 +592,7 @@ void cleanup_packets(void) free(packet_dyn); } -void compile_packets(char *file, int verbose, int cpu, bool invoke_cpp) +void compile_packets(char *file, bool verbose, unsigned int cpu, bool invoke_cpp) { char tmp_file[128]; int ret = -1; -- cgit v1.2.3-54-g00ecf