diff options
author | Ted Lemon <source@isc.org> | 2001-03-01 18:17:09 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 2001-03-01 18:17:09 +0000 |
commit | 0b69dcc8709461c9fd2bfa644d0d78b827d06ef3 (patch) | |
tree | 625bb174155b8af6b15b9c5f1745d5826ed43f71 /dhcpctl/omshell.c | |
parent | 9f8b2a7f67edf5517bc8a203f7749b2c5ca7ef8e (diff) | |
download | isc-dhcp-0b69dcc8709461c9fd2bfa644d0d78b827d06ef3.tar.gz |
Change EOF to END_OF_FILE in tokenizer for enum compatibility.
Diffstat (limited to 'dhcpctl/omshell.c')
-rw-r--r-- | dhcpctl/omshell.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dhcpctl/omshell.c b/dhcpctl/omshell.c index 4fb47d4f..24a85cb8 100644 --- a/dhcpctl/omshell.c +++ b/dhcpctl/omshell.c @@ -1,4 +1,4 @@ -/* omapictl.c +/* omshell.c Examine and modify omapi objects. */ @@ -224,7 +224,7 @@ int main (int argc, char **argv, char **envp) parse_warn (cfile, "unknown token: %s", val); break; - case EOF: + case END_OF_FILE: break; case TOKEN_HELP: @@ -239,7 +239,7 @@ int main (int argc, char **argv, char **envp) case TOKEN_NEW: token = next_token (&val, cfile); if ((!is_identifier (token) && token != STRING) || - next_token (NULL, cfile) != EOF) + next_token (NULL, cfile) != END_OF_FILE) { printf ("usage: new <object-type>\n"); break; @@ -260,7 +260,7 @@ int main (int argc, char **argv, char **envp) break; case TOKEN_CLOSE: - if (next_token (NULL, cfile) != EOF) { + if (next_token (NULL, cfile) != END_OF_FILE) { printf ("usage: close\n"); } @@ -304,7 +304,7 @@ int main (int argc, char **argv, char **envp) case TOKEN_CREATE: case TOKEN_OPEN: - if (next_token (NULL, cfile) != EOF) { + if (next_token (NULL, cfile) != END_OF_FILE) { printf ("usage: %s\n", val); } @@ -327,7 +327,7 @@ int main (int argc, char **argv, char **envp) break; case UPDATE: - if (next_token (NULL, cfile) != EOF) { + if (next_token (NULL, cfile) != END_OF_FILE) { printf ("usage: %s\n", val); } |