From 4a69d10920c47fbbb5522adbb478cfeb8f6785dc Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 16 Feb 2018 14:10:47 -0800 Subject: 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 Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris --- text2pcap.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'text2pcap.h') 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); #endif -- cgit v1.2.3