summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authornicm <nicm>2015-11-18 13:06:54 +0000
committernicm <nicm>2015-11-18 13:06:54 +0000
commit64571368dc19219fc1ef9b6c20034ee143cbed0d (patch)
treedf7ea5e4787df75f08ebe9a4969c5025715cee15 /options.c
parentca5e6bf5f2f11796bf2bdbe136ba534e46b2e86e (diff)
Sync the entire xmalloc.[ch] with the other users, but with the addition
of xrealloc, xvasprintf, xvsnprintf.
Diffstat (limited to 'options.c')
-rw-r--r--options.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/options.c b/options.c
index 8d2fb715..c355f9ce 100644
--- a/options.c
+++ b/options.c
@@ -150,9 +150,9 @@ options_get_string(struct options *oo, const char *name)
struct options_entry *o;
if ((o = options_find(oo, name)) == NULL)
- log_fatalx("missing option %s", name);
+ fatalx("missing option %s", name);
if (o->type != OPTIONS_STRING)
- log_fatalx("option %s not a string", name);
+ fatalx("option %s not a string", name);
return (o->str);
}
@@ -180,9 +180,9 @@ options_get_number(struct options *oo, const char *name)
struct options_entry *o;
if ((o = options_find(oo, name)) == NULL)
- log_fatalx("missing option %s", name);
+ fatalx("missing option %s", name);
if (o->type != OPTIONS_NUMBER)
- log_fatalx("option %s not a number", name);
+ fatalx("option %s not a number", name);
return (o->num);
}
@@ -220,8 +220,8 @@ options_get_style(struct options *oo, const char *name)
struct options_entry *o;
if ((o = options_find(oo, name)) == NULL)
- log_fatalx("missing option %s", name);
+ fatalx("missing option %s", name);
if (o->type != OPTIONS_STYLE)
- log_fatalx("option %s not a style", name);
+ fatalx("option %s not a style", name);
return (&o->style);
}