diff options
| author | Matt Kraai <kraai@debian.org> | 2001-01-31 19:00:21 +0000 |
|---|---|---|
| committer | Matt Kraai <kraai@debian.org> | 2001-01-31 19:00:21 +0000 |
| commit | dd19c6990496023fe23fefef8f1798740f7d39c6 (patch) | |
| tree | 3933adefa4171173db78fa2389146ac89f4edb86 /miscutils | |
| parent | 63ec2732454a0c973305794e185e488106f6b282 (diff) | |
| download | busybox-w32-dd19c6990496023fe23fefef8f1798740f7d39c6.tar.gz busybox-w32-dd19c6990496023fe23fefef8f1798740f7d39c6.tar.bz2 busybox-w32-dd19c6990496023fe23fefef8f1798740f7d39c6.zip | |
Removed trailing \n from error_msg{,_and_die} messages.
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/dc.c | 6 | ||||
| -rw-r--r-- | miscutils/mt.c | 2 |
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; | |||
| 14 | static void push(double a) | 14 | static void push(double a) |
| 15 | { | 15 | { |
| 16 | if (pointer >= (sizeof(stack) / sizeof(*stack))) | 16 | if (pointer >= (sizeof(stack) / sizeof(*stack))) |
| 17 | error_msg_and_die("stack overflow\n"); | 17 | error_msg_and_die("stack overflow"); |
| 18 | stack[pointer++] = a; | 18 | stack[pointer++] = a; |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | static double pop() | 21 | static double pop() |
| 22 | { | 22 | { |
| 23 | if (pointer == 0) | 23 | if (pointer == 0) |
| 24 | error_msg_and_die("stack underflow\n"); | 24 | error_msg_and_die("stack underflow"); |
| 25 | return stack[--pointer]; | 25 | return stack[--pointer]; |
| 26 | } | 26 | } |
| 27 | 27 | ||
| @@ -120,7 +120,7 @@ static void stack_machine(const char *argument) | |||
| 120 | } | 120 | } |
| 121 | o++; | 121 | o++; |
| 122 | } | 122 | } |
| 123 | error_msg_and_die("%s: syntax error.\n", argument); | 123 | error_msg_and_die("%s: syntax error.", argument); |
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | /* return pointer to next token in buffer and set *buffer to one char | 126 | /* 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) | |||
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | if (code->name == 0) { | 78 | if (code->name == 0) { |
| 79 | error_msg("unrecognized opcode %s.\n", argv[1]); | 79 | error_msg("unrecognized opcode %s.", argv[1]); |
| 80 | return EXIT_FAILURE; | 80 | return EXIT_FAILURE; |
| 81 | } | 81 | } |
| 82 | 82 | ||
