summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-10-13 18:56:11 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-10-13 18:56:11 +0200
commitde964cc2a201e442ddcd27f91ed6eef1a096c3b6 (patch)
tree8b9da931ddca94cd6dc1994455c6ca2bbd024e14
parent895377c6e96ec8ac853568eb275043741a7621cd (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.h2
-rw-r--r--trafgen_parser.y2
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;