Make parse_warn() messages consistantly use 'expecting' rather
authorkrw <krw@openbsd.org>
Sat, 18 Jan 2014 01:03:56 +0000 (01:03 +0000)
committerkrw <krw@openbsd.org>
Sat, 18 Jan 2014 01:03:56 +0000 (01:03 +0000)
than occasionally 'expected'. End all with a '.'.

sbin/dhclient/clparse.c
sbin/dhclient/parse.c

index 0121997..8a46b65 100644 (file)
@@ -1,4 +1,4 @@
-/*     $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. */
 
@@ -327,7 +327,7 @@ parse_option_list(FILE *cfile, u_int8_t *list, size_t sz)
                        return (0);
                }
                if (!is_identifier(token)) {
-                       parse_warn("expected option name.");
+                       parse_warn("expecting option name.");
                        goto syntaxerror;
                }
                /*
@@ -340,7 +340,7 @@ parse_option_list(FILE *cfile, u_int8_t *list, size_t sz)
                                break;
 
                if (i == DHO_END) {
-                       parse_warn("unexpected option name.");
+                       parse_warn("expecting option name.");
                        goto syntaxerror;
                }
                if (ix == sz) {
index 0ef1f38..302d98b 100644 (file)
@@ -1,4 +1,4 @@
-/*     $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. */
 
@@ -102,7 +102,7 @@ parse_semi(FILE *cfile)
 
        token = next_token(NULL, cfile);
        if (token != ';') {
-               parse_warn("semicolon expected.");
+               parse_warn("expecting semicolon.");
                skip_to_semi(cfile);
                return (0);
        }
@@ -153,7 +153,7 @@ parse_hardware_param(FILE *cfile, struct ether_addr *hardware)
 
        token = next_token(NULL, cfile);
        if (token != TOK_ETHERNET) {
-               parse_warn("expecting 'ethernet'");
+               parse_warn("expecting 'ethernet'.");
                if (token != ';')
                        skip_to_semi(cfile);
                return;
@@ -178,7 +178,7 @@ parse_lease_time(FILE *cfile, time_t *timep)
 
        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;