aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/dc.c6
-rw-r--r--miscutils/mt.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/miscutils/dc.c b/miscutils/dc.c
index d462100a2..122673a95 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)))
- error_msg_and_die("stack overflow\n");
+ error_msg_and_die("stack overflow");
stack[pointer++] = a;
}
static double pop()
{
if (pointer == 0)
- error_msg_and_die("stack underflow\n");
+ error_msg_and_die("stack underflow");
return stack[--pointer];
}
@@ -120,7 +120,7 @@ static void stack_machine(const char *argument)
}
o++;
}
- error_msg_and_die("%s: syntax error.\n", argument);
+ error_msg_and_die("%s: syntax error.", argument);
}
/* return pointer to next token in buffer and set *buffer to one char
diff --git a/miscutils/mt.c b/miscutils/mt.c
index 0d28339b9..683804b5a 100644
--- a/miscutils/mt.c
+++ b/miscutils/mt.c
@@ -76,7 +76,7 @@ extern int mt_main(int argc, char **argv)
}
if (code->name == 0) {
- error_msg("unrecognized opcode %s.\n", argv[1]);
+ error_msg("unrecognized opcode %s.", argv[1]);
return EXIT_FAILURE;
}