summaryrefslogtreecommitdiff
path: root/nasmlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'nasmlib.c')
-rw-r--r--nasmlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nasmlib.c b/nasmlib.c
index d19cbf6d..265091c7 100644
--- a/nasmlib.c
+++ b/nasmlib.c
@@ -163,7 +163,7 @@ char *nasm_strndup(const char *s, size_t len)
no_return nasm_assert_failed(const char *file, int line, const char *msg)
{
- nasm_error(ERR_FATAL, "assertion %s failed at %s:%d", msg, file, line);
+ nasm_fatal(0, "assertion %s failed at %s:%d", msg, file, line);
exit(1);
}
@@ -171,7 +171,7 @@ void nasm_write(const void *ptr, size_t size, FILE *f)
{
size_t n = fwrite(ptr, 1, size, f);
if (n != size)
- nasm_error(ERR_FATAL, "unable to write output: %s", strerror(errno));
+ nasm_fatal(0, "unable to write output: %s", strerror(errno));
}
#ifndef nasm_stricmp