]> The Tcpdump Group git mirrors - libpcap/commitdiff
If we have lex but not flex, we assign a "const char *" to "in_buffer";
authorGuy Harris <[email protected]>
Sun, 24 May 2009 20:22:03 +0000 (13:22 -0700)
committerGuy Harris <[email protected]>
Sun, 24 May 2009 20:22:03 +0000 (13:22 -0700)
make it a "const char *" as well.

scanner.l

index 45f214134578a766f2dd09ca4b72c74f2a81a46e..4a6fdb11625157362edba5a0825c2f1d53caabce 100644 (file)
--- a/scanner.l
+++ b/scanner.l
@@ -66,7 +66,7 @@ static inline int xdtoi(int);
 #define YY_NO_UNPUT
 static YY_BUFFER_STATE in_buffer;
 #else
-static char *in_buffer;
+static const char *in_buffer;
 
 #undef getc
 #define getc(fp)  (*in_buffer == 0 ? EOF : *in_buffer++)