-/* $OpenBSD: clparse.c,v 1.73 2014/01/18 00:51:55 krw Exp $ */
+/* $OpenBSD: clparse.c,v 1.74 2014/01/18 01:03:56 krw Exp $ */
/* Parser for dhclient config and lease files. */
return (0);
}
if (!is_identifier(token)) {
- parse_warn("expected option name.");
+ parse_warn("expecting option name.");
goto syntaxerror;
}
/*
break;
if (i == DHO_END) {
- parse_warn("unexpected option name.");
+ parse_warn("expecting option name.");
goto syntaxerror;
}
if (ix == sz) {
-/* $OpenBSD: parse.c,v 1.32 2014/01/18 00:51:55 krw Exp $ */
+/* $OpenBSD: parse.c,v 1.33 2014/01/18 01:03:56 krw Exp $ */
/* Common parser code for dhcpd and dhclient. */
token = next_token(NULL, cfile);
if (token != ';') {
- parse_warn("semicolon expected.");
+ parse_warn("expecting semicolon.");
skip_to_semi(cfile);
return (0);
}
token = next_token(NULL, cfile);
if (token != TOK_ETHERNET) {
- parse_warn("expecting 'ethernet'");
+ parse_warn("expecting 'ethernet'.");
if (token != ';')
skip_to_semi(cfile);
return;
token = next_token(&val, cfile);
if (token != TOK_NUMBER) {
- parse_warn("Expecting numeric lease time");
+ parse_warn("expecting numeric lease time.");
if (token != ';')
skip_to_semi(cfile);
return;