diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-09-14 00:10:18 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-09-14 00:10:18 +0000 |
commit | a24cee5bf50e665a64b08d60b80e2a941cc9f7eb (patch) | |
tree | 32cb19d3ed56492e109fc40574d3c1e66fa1a885 /sbin/dhclient/clparse.c | |
parent | ef4d5e858511f21f183b29a0757a810b28c8fd62 (diff) |
Strive to rationalize fatal[x]() usage and
verbiage.
Diffstat (limited to 'sbin/dhclient/clparse.c')
-rw-r--r-- | sbin/dhclient/clparse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dhclient/clparse.c b/sbin/dhclient/clparse.c index 3235181e7ed..28951bc28c7 100644 --- a/sbin/dhclient/clparse.c +++ b/sbin/dhclient/clparse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clparse.c,v 1.125 2017/08/14 22:12:59 krw Exp $ */ +/* $OpenBSD: clparse.c,v 1.126 2017/09/14 00:10:17 krw Exp $ */ /* Parser for dhclient config and lease files. */ @@ -507,7 +507,7 @@ parse_client_lease_statement(FILE *cfile, char *name) lease = calloc(1, sizeof(*lease)); if (lease == NULL) - fatalx("no memory for lease."); + fatal("lease"); do { token = peek_token(NULL, cfile); @@ -760,7 +760,7 @@ parse_option_decl(FILE *cfile, struct option_data *options) options[code].data = malloc(hunkix + nul_term); if (options[code].data == NULL) - fatalx("out of memory allocating option data."); + fatal("option data"); memcpy(options[code].data, hunkbuf, hunkix + nul_term); options[code].len = hunkix; return code; @@ -779,7 +779,7 @@ parse_reject_statement(FILE *cfile) elem = malloc(sizeof(*elem)); if (elem == NULL) - fatalx("no memory for reject address!"); + fatal("reject address"); elem->addr = addr; TAILQ_INSERT_TAIL(&config->reject_list, elem, next); |