summaryrefslogtreecommitdiffstats
path: root/tty-term.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 /tty-term.c
parentca5e6bf5f2f11796bf2bdbe136ba534e46b2e86e (diff)
Sync the entire xmalloc.[ch] with the other users, but with the addition
of xrealloc, xvasprintf, xvsnprintf.
Diffstat (limited to 'tty-term.c')
-rw-r--r--tty-term.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tty-term.c b/tty-term.c
index c6147559..5f2e1a94 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -556,7 +556,7 @@ tty_term_string(struct tty_term *term, enum tty_code_code code)
if (!tty_term_has(term, code))
return ("");
if (term->codes[code].type != TTYCODE_STRING)
- log_fatalx("not a string: %d", code);
+ fatalx("not a string: %d", code);
return (term->codes[code].value.string);
}
@@ -591,7 +591,7 @@ tty_term_number(struct tty_term *term, enum tty_code_code code)
if (!tty_term_has(term, code))
return (0);
if (term->codes[code].type != TTYCODE_NUMBER)
- log_fatalx("not a number: %d", code);
+ fatalx("not a number: %d", code);
return (term->codes[code].value.number);
}
@@ -601,7 +601,7 @@ tty_term_flag(struct tty_term *term, enum tty_code_code code)
if (!tty_term_has(term, code))
return (0);
if (term->codes[code].type != TTYCODE_FLAG)
- log_fatalx("not a flag: %d", code);
+ fatalx("not a flag: %d", code);
return (term->codes[code].value.flag);
}