Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/dhcp/common Add missing parentheses in ifdef(OLD_LEXER)...
details: https://anonhg.NetBSD.org/src/rev/2ddc964550bc
branches: trunk
changeset: 750872:2ddc964550bc
user: wiz <wiz%NetBSD.org@localhost>
date: Sun Jan 17 22:42:36 2010 +0000
description:
Add missing parentheses in ifdef(OLD_LEXER). Found by cppcheck.
diffstat:
dist/dhcp/common/conflex.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r e1ce4b55b81c -r 2ddc964550bc dist/dhcp/common/conflex.c
--- a/dist/dhcp/common/conflex.c Sun Jan 17 22:21:18 2010 +0000
+++ b/dist/dhcp/common/conflex.c Sun Jan 17 22:42:36 2010 +0000
@@ -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) {
Home |
Main Index |
Thread Index |
Old Index