aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_l.l
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-03-18 10:10:32 +0100
committerMatthias Andree <matthias.andree@gmx.de>2010-03-18 10:10:32 +0100
commit05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4 (patch)
tree898185b02c06b47450c88fc8731cf508c056568d /rcfile_l.l
parente9c99cb0a353ed18bd7c6ea6e93ec2fea326bbb4 (diff)
downloadfetchmail-05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4.tar.gz
fetchmail-05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4.tar.bz2
fetchmail-05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4.zip
Fix lots of warnings, most around string literals...
...that were converted to char* when they should have been converted to const char *. Use braces for empty if/else statements.
Diffstat (limited to 'rcfile_l.l')
-rw-r--r--rcfile_l.l4
1 files changed, 3 insertions, 1 deletions
diff --git a/rcfile_l.l b/rcfile_l.l
index 9a1fe637..8dcd8af1 100644
--- a/rcfile_l.l
+++ b/rcfile_l.l
@@ -19,6 +19,8 @@ int prc_lineno = 1;
#define SETSTATE(n) BEGIN(n)
#endif /* LEXDEBUG */
+#define YY_NO_INPUT
+
%}
/* this doesn't work with Linux lex, see the INSTALL file */
@@ -244,7 +246,7 @@ void escapes(const char *cp /** source string with escapes */,
* always succeed! */
if (*cp == '\\' && cp[1] && strchr("0123456789xX", cp[1]))
{
- char *dp;
+ const char *dp;
const char *hex = "00112233445566778899aAbBcCdDeEfF";
int dcount = 0;