summaryrefslogtreecommitdiff
path: root/trafgen_conf.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-10-13 17:16:43 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-10-13 17:22:08 +0200
commit895377c6e96ec8ac853568eb275043741a7621cd (patch)
tree91a6d5ce3b11ec555d427cdb6d784bfcd78e80e6 /trafgen_conf.h
parentdaac1198c011aa122cf52004629dd77b4e99ae7d (diff)
trafgen: Don't panic() on parser errors
If the C preprocessor is used to parse the packet description, a temporary file is created which is not deleted if an error occurs during parsing in compile_packets(). Instead, don't panic() on errors and only print a message, and only die() once we cleaned up after us. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_conf.h')
-rw-r--r--trafgen_conf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen_conf.h b/trafgen_conf.h
index 3922d15..01d249d 100644
--- a/trafgen_conf.h
+++ b/trafgen_conf.h
@@ -45,7 +45,7 @@ struct packet_dyn {
size_t slen;
};
-extern int compile_packets(char *file, int verbose, int cpu, bool invoke_cpp);
+extern void compile_packets(char *file, int verbose, int cpu, bool invoke_cpp);
extern void cleanup_packets(void);
#endif /* TRAFGEN_CONF */