aboutsummaryrefslogtreecommitdiffstats
path: root/text2pcap-scanner.l
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-scanner.l
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-scanner.l')
-rw-r--r--text2pcap-scanner.l10
1 files changed, 10 insertions, 0 deletions
diff --git a/text2pcap-scanner.l b/text2pcap-scanner.l
index c233999d4d..51c5d67bca 100644
--- a/text2pcap-scanner.l
+++ b/text2pcap-scanner.l
@@ -113,3 +113,13 @@ eol \r?\n\r?
* Turn diagnostics back on, so we check the code that we've written.
*/
DIAG_ON_FLEX
+
+int
+text2pcap_scan(void)
+{
+ int ret;
+
+ ret = text2pcap_lex();
+ text2pcap_lex_destroy();
+ return ret;
+}