Module Name:    src
Committed By:   wiz
Date:           Sun Jan 17 22:42:36 UTC 2010

Modified Files:
        src/dist/dhcp/common: conflex.c

Log Message:
Add missing parentheses in ifdef(OLD_LEXER). Found by cppcheck.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/dist/dhcp/common/conflex.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/dist/dhcp/common/conflex.c
diff -u src/dist/dhcp/common/conflex.c:1.5 src/dist/dhcp/common/conflex.c:1.6
--- src/dist/dhcp/common/conflex.c:1.5	Thu Aug 11 17:13:21 2005
+++ src/dist/dhcp/common/conflex.c	Sun Jan 17 22:42:36 2010
@@ -34,7 +34,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: conflex.c,v 1.5 2005/08/11 17:13:21 drochner Exp $ Copyright (c) 2004-2005 Internet Systems Consortium.  All rights reserved.\n";
+"$Id: conflex.c,v 1.6 2010/01/17 22:42:36 wiz Exp $ Copyright (c) 2004-2005 Internet Systems Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -467,7 +467,7 @@
 			log_fatal("read_number():%s:%d: impossible case", MDL);
 		}
 #else /* OLD_LEXER */
-		if (!seenx && (c == 'x') {
+		if (!seenx && (c == 'x')) {
 			seenx = 1;
 		} else if (!isascii (c) || !isxdigit (c)) {
 			if (c != EOF) {

Reply via email to