summaryrefslogtreecommitdiff
path: root/wiretap/k12text.l
diff options
context:
space:
mode:
Diffstat (limited to 'wiretap/k12text.l')
-rw-r--r--wiretap/k12text.l16
1 files changed, 5 insertions, 11 deletions
diff --git a/wiretap/k12text.l b/wiretap/k12text.l
index 350393538a..7601b94232 100644
--- a/wiretap/k12text.l
+++ b/wiretap/k12text.l
@@ -14,6 +14,11 @@
%option never-interactive
/*
+ * We want to stop processing when we get to the end of the input.
+ */
+%option noyywrap
+
+/*
* Prefix scanner routines with "K12Text_" rather than "yy", so this scanner
* can coexist with other scanners.
*/
@@ -461,14 +466,3 @@ k12text_dump_can_write_encap(int encap)
return WTAP_ERR_UNWRITABLE_ENCAP;
}
}
-
-/*
- * We want to stop processing when we get to the end of the input.
- * (%option noyywrap is not used because if used then
- * some flex versions (eg: 2.5.35) generate code which causes
- * warnings by the Windows VC compiler).
- */
-
-int yywrap(void) {
- return 1;
-}