diff options
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/dc.c | 6 | ||||
-rw-r--r-- | miscutils/dutmp.c | 2 | ||||
-rw-r--r-- | miscutils/mt.c | 2 | ||||
-rw-r--r-- | miscutils/readlink.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/miscutils/dc.c b/miscutils/dc.c index 0f5f1fc..d462100 100644 --- a/miscutils/dc.c +++ b/miscutils/dc.c @@ -14,14 +14,14 @@ static unsigned int pointer; static void push(double a) { if (pointer >= (sizeof(stack) / sizeof(*stack))) - fatalError("stack overflow\n"); + error_msg_and_die("stack overflow\n"); stack[pointer++] = a; } static double pop() { if (pointer == 0) - fatalError("stack underflow\n"); + error_msg_and_die("stack underflow\n"); return stack[--pointer]; } @@ -120,7 +120,7 @@ static void stack_machine(const char *argument) } o++; } - fatalError("%s: syntax error.\n", argument); + error_msg_and_die("%s: syntax error.\n", argument); } /* return pointer to next token in buffer and set *buffer to one char diff --git a/miscutils/dutmp.c b/miscutils/dutmp.c index 03d80d8..efd15df 100644 --- a/miscutils/dutmp.c +++ b/miscutils/dutmp.c @@ -35,7 +35,7 @@ extern int dutmp_main(int argc, char **argv) } else { file = open(argv[1], O_RDONLY); if (file < 0) { - fatalError(io_error, argv[1], strerror(errno)); + error_msg_and_die(io_error, argv[1], strerror(errno)); } } diff --git a/miscutils/mt.c b/miscutils/mt.c index 583674b..2d35c7c 100644 --- a/miscutils/mt.c +++ b/miscutils/mt.c @@ -75,7 +75,7 @@ extern int mt_main(int argc, char **argv) } if (code->name == 0) { - errorMsg("unrecognized opcode %s.\n", argv[1]); + error_msg("unrecognized opcode %s.\n", argv[1]); return EXIT_FAILURE; } diff --git a/miscutils/readlink.c b/miscutils/readlink.c index 5a798c0..bb40b07 100644 --- a/miscutils/readlink.c +++ b/miscutils/readlink.c @@ -39,7 +39,7 @@ int readlink_main(int argc, char **argv) buf = xrealloc(buf, bufsize); size = readlink(argv[1], buf, bufsize); if (size == -1) - fatalError("%s: %s\n", argv[1], strerror(errno)); + error_msg_and_die("%s: %s\n", argv[1], strerror(errno)); } buf[size] = '\0'; |