aboutsummaryrefslogtreecommitdiffstats
path: root/text2pcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-02-16 14:10:47 -0800
committerGuy Harris <guy@alum.mit.edu>2018-02-16 22:40:26 +0000
commit4a69d10920c47fbbb5522adbb478cfeb8f6785dc (patch)
tree327d87b3d61abeea16761265884b84273c7c419a /text2pcap.c
parentc881ee37d955428cea8f377aaa0a66d5c0b0e60d (diff)
Squelch redundant declaration warnings.
Have the text-to-pcap scanners define a routine that the main code calls, which both allocates and destroys the scanner. Don't declare the Lex-generated routines in a header file we create, declare that routine, instead. Change-Id: Icad6a83db1a0dea8ac390315af72383fc99f8513 Reviewed-on: https://code.wireshark.org/review/25822 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'text2pcap.c')
-rw-r--r--text2pcap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/text2pcap.c b/text2pcap.c
index ffa3c0fc84..2aea8e78e9 100644
--- a/text2pcap.c
+++ b/text2pcap.c
@@ -1908,7 +1908,7 @@ main(int argc, char *argv[])
curr_offset = header_length;
text2pcap_in = input_file;
- if (text2pcap_lex() == EXIT_SUCCESS) {
+ if (text2pcap_scan() == EXIT_SUCCESS) {
if (write_current_packet(FALSE) != EXIT_SUCCESS)
ret = EXIT_FAILURE;
} else {
@@ -1923,7 +1923,6 @@ main(int argc, char *argv[])
bytes_written, (bytes_written == 1) ? "" : "s");
}
clean_exit:
- text2pcap_lex_destroy();
if (input_file) {
fclose(input_file);
}