diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-10-13 18:56:11 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-10-13 18:56:11 +0200 |
commit | de964cc2a201e442ddcd27f91ed6eef1a096c3b6 (patch) | |
tree | 8b9da931ddca94cd6dc1994455c6ca2bbd024e14 | |
parent | 895377c6e96ec8ac853568eb275043741a7621cd (diff) |
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 <tklauser@distanz.ch>
-rw-r--r-- | trafgen_conf.h | 2 | ||||
-rw-r--r-- | 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; |