aboutsummaryrefslogtreecommitdiff
path: root/miscutils/dc.c
diff options
context:
space:
mode:
authorGravatar Matt Kraai <kraai@debian.org>2001-01-31 19:00:21 +0000
committerGravatar Matt Kraai <kraai@debian.org>2001-01-31 19:00:21 +0000
commitdd19c6990496023fe23fefef8f1798740f7d39c6 (patch)
tree3933adefa4171173db78fa2389146ac89f4edb86 /miscutils/dc.c
parent63ec2732454a0c973305794e185e488106f6b282 (diff)
downloadbusybox-dd19c6990496023fe23fefef8f1798740f7d39c6.tar.gz
busybox-dd19c6990496023fe23fefef8f1798740f7d39c6.tar.bz2
Removed trailing \n from error_msg{,_and_die} messages.
Diffstat (limited to 'miscutils/dc.c')
-rw-r--r--miscutils/dc.c6
1 files changed, 3 insertions, 3 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