]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Different flex version, no warning about signed and unsigned comparison.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 17 Jun 2011 09:59:53 +0000 (09:59 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 17 Jun 2011 09:59:53 +0000 (09:59 +0000)
git-svn-id: file:///svn/unbound/trunk@2433 be551aaa-1e26-0410-a405-d3ace91eadb9

util/configlexer.c

index a179e1ad6717c960a3e3b6f2102e7e42ba0ea936..ff38854fd1b3c5c014fc178ab391ca43d23ebe6e 100644 (file)
@@ -1624,7 +1624,7 @@ static int input (void );
 /* This used to be an fputs(), but since the string might contain NUL's,
  * we now use fwrite().
  */
-#define ECHO fwrite( yytext, yyleng, 1, yyout )
+#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
 #endif
 
 /* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
@@ -1635,7 +1635,7 @@ static int input (void );
        if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
                { \
                int c = '*'; \
-               int n; \
+               unsigned n; \
                for ( n = 0; n < max_size && \
                             (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
                        buf[n] = (char) c; \