]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Compilation problem with gcc4.5 and omshell.c resolved. [ISC-Bugs #23831]
authorTomek Mrugalski <tomek@isc.org>
Thu, 12 May 2011 11:16:41 +0000 (11:16 +0000)
committerTomek Mrugalski <tomek@isc.org>
Thu, 12 May 2011 11:16:41 +0000 (11:16 +0000)
RELNOTES
dhcpctl/omshell.c
includes/dhctoken.h

index 635ac670ad3eb01970ecb12e0e20a009c8ec44b6..469e22cb3d647a5359842b166c68affd6799be2f 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -136,8 +136,10 @@ work on other platforms. Please report any problems and suggested fixes to
   [ISC-Bugs #22695] - Close a file descriptor in an error path.
   [ISC-Bugs #19368] - Tidy up variable types in validate_port.
 
-- Code cleanup
-  [ISC-Bugs #13151] - remove obsolete PROTO, KandR, INLINE and ANSI_DECL macros
+- Code cleanup: remove obsolete PROTO, KandR, INLINE and ANSI_DECL macros
+  [ISC-Bugs #13151] 
+
+- Compilation problem with gcc4.5 and omshell.c resolved. [ISC-Bugs #23831]
 
                        Changes since 4.2.0
 
index 4da7428e971191bd7b44e5943c15d6c73bfa9bfe..ca918ce4e152e01c424f19a6e05203f3056b52e7 100644 (file)
@@ -190,11 +190,11 @@ main(int argc, char **argv) {
                    break;
                    
                  case END_OF_FILE:
-                 case EOL:
+                 case ENDOFLINE: /* EOL: */
                    break;
                    
                  case TOKEN_HELP:
-                 case '?':
+                 case QUESTIONMARK: /* '?': */
                    printf ("Commands:\n");
                    printf ("  port <server omapi port>\n");
                    printf ("  server <server address>\n");
index 5bc1e0b634fdf298f03531b22a2cb89f5f45903c..1d0c9e78c0c1350134c10179a357de2dbe7c6c2e 100644 (file)
@@ -3,8 +3,8 @@
    Tokens for config file lexer and parser. */
 
 /*
- * Copyright (c) 2004,2007-2009,2011 by 
- * Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 2011 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 2004,2007-2009 by Internet Systems Consortium, Inc. ("ISC")
  * Copyright (c) 1996-2003 by Internet Software Consortium
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -47,12 +47,14 @@ enum dhcp_token {
        TILDE = '~',
        BANG = '!',
        PERCENT = '%',
-       PLUS = '+',
+       PLUS = '+',
        MINUS = '-',
        ASTERISK = '*',
        AMPERSAND = '&',
        PIPE = '|',
        CARET = '^',
+       ENDOFLINE = '\n',
+       QUESTIONMARK = '?',
 
        HOST = 256,
        FIRST_TOKEN = HOST,