summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/options.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-11-18 13:06:54 +0000
committernicm <nicm@openbsd.org>2015-11-18 13:06:54 +0000
commit3baad57ef88ab20f52119f6543f71b63fb770a08 (patch)
treee252ce8ba7ee0e277ec9861ba0b7a844d834c275 /usr.bin/tmux/options.c
parentRevert previous workaround now that multipath route selection has been (diff)
downloadwireguard-openbsd-3baad57ef88ab20f52119f6543f71b63fb770a08.tar.xz
wireguard-openbsd-3baad57ef88ab20f52119f6543f71b63fb770a08.zip
Sync the entire xmalloc.[ch] with the other users, but with the addition
of xrealloc, xvasprintf, xvsnprintf.
Diffstat (limited to 'usr.bin/tmux/options.c')
-rw-r--r--usr.bin/tmux/options.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/tmux/options.c b/usr.bin/tmux/options.c
index eb622e0f4ec..af3fb28902c 100644
--- a/usr.bin/tmux/options.c
+++ b/usr.bin/tmux/options.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: options.c,v 1.14 2015/11/13 16:06:43 nicm Exp $ */
+/* $OpenBSD: options.c,v 1.15 2015/11/18 13:06:54 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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);
}