path: root/text2pcap.h
diff options
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.h
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.h')
1 files changed, 1 insertions, 3 deletions
diff --git a/text2pcap.h b/text2pcap.h
index d9cd7f9d28..02816561ad 100644
--- a/text2pcap.h
+++ b/text2pcap.h
@@ -27,9 +27,7 @@ typedef enum {
int parse_token(token_t token, char *str);
-int text2pcap_lex(void);
-int text2pcap_lex_destroy(void);
+int text2pcap_scan(void);