Include <stdlib.h> to declare exit().
Also, flag the exit() call as a Bad Idea, as is done in some other tap files. Change-Id: I4e077f5923bb36ed9c8b34aff3dda6d44b2b8721 Reviewed-on: https://code.wireshark.org/review/10950 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
52e5ada040
commit
a342d1f3b9
|
@ -25,6 +25,8 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "tap-rlc-graph.h"
|
||||
|
||||
#include <file.h>
|
||||
|
@ -138,7 +140,7 @@ rlc_lte_tap_info *select_rlc_lte_session(capture_file *cf,
|
|||
fprintf(stderr, "wireshark: Couldn't register rlc_lte_graph tap: %s\n",
|
||||
error_string->str);
|
||||
g_string_free(error_string, TRUE);
|
||||
exit(1);
|
||||
exit(1); /* XXX: fix this */
|
||||
}
|
||||
|
||||
epan_dissect_init(&edt, cf->epan, TRUE, FALSE);
|
||||
|
|
Loading…
Reference in New Issue