diff options
| author | Eric Andersen <andersen@codepoet.org> | 2000-06-02 03:21:42 +0000 |
|---|---|---|
| committer | Eric Andersen <andersen@codepoet.org> | 2000-06-02 03:21:42 +0000 |
| commit | 86ab8a32bd63b2f2a73bdcead8e2bb037589e175 (patch) | |
| tree | 10aa90962757d07724c78e4fc9baaa27ca7b4858 /test.c | |
| parent | 4062268bc7ac748e2ea2e569aa862b2b3f8a2db2 (diff) | |
| download | busybox-w32-86ab8a32bd63b2f2a73bdcead8e2bb037589e175.tar.gz busybox-w32-86ab8a32bd63b2f2a73bdcead8e2bb037589e175.tar.bz2 busybox-w32-86ab8a32bd63b2f2a73bdcead8e2bb037589e175.zip | |
A number of additional fixed from Pavel Roskin, note some more bugs in the
TODO list. Add Glenn to the Authors list for writing a mini ar for BusyBox,
which is now included.
-Erik
Diffstat (limited to 'test.c')
| -rw-r--r-- | test.c | 12 |
1 files changed, 6 insertions, 6 deletions
| @@ -185,7 +185,7 @@ test_main(int argc, char** argv) | |||
| 185 | 185 | ||
| 186 | if (strcmp(argv[0], "[") == 0) { | 186 | if (strcmp(argv[0], "[") == 0) { |
| 187 | if (strcmp(argv[--argc], "]")) | 187 | if (strcmp(argv[--argc], "]")) |
| 188 | fatalError("missing ]"); | 188 | fatalError("missing ]\n"); |
| 189 | argv[argc] = NULL; | 189 | argv[argc] = NULL; |
| 190 | } | 190 | } |
| 191 | if (strcmp(argv[1], dash_dash_help) == 0) { | 191 | if (strcmp(argv[1], dash_dash_help) == 0) { |
| @@ -244,9 +244,9 @@ syntax(op, msg) | |||
| 244 | char *msg; | 244 | char *msg; |
| 245 | { | 245 | { |
| 246 | if (op && *op) | 246 | if (op && *op) |
| 247 | fatalError("%s: %s", op, msg); | 247 | fatalError("%s: %s\n", op, msg); |
| 248 | else | 248 | else |
| 249 | fatalError("%s", msg); | 249 | fatalError("%s\n", msg); |
| 250 | } | 250 | } |
| 251 | 251 | ||
| 252 | static int | 252 | static int |
| @@ -481,13 +481,13 @@ getn(s) | |||
| 481 | r = strtol(s, &p, 10); | 481 | r = strtol(s, &p, 10); |
| 482 | 482 | ||
| 483 | if (errno != 0) | 483 | if (errno != 0) |
| 484 | fatalError("%s: out of range", s); | 484 | fatalError("%s: out of range\n", s); |
| 485 | 485 | ||
| 486 | while (isspace(*p)) | 486 | while (isspace(*p)) |
| 487 | p++; | 487 | p++; |
| 488 | 488 | ||
| 489 | if (*p) | 489 | if (*p) |
| 490 | fatalError("%s: bad number", s); | 490 | fatalError("%s: bad number\n", s); |
| 491 | 491 | ||
| 492 | return (int) r; | 492 | return (int) r; |
| 493 | } | 493 | } |
| @@ -567,7 +567,7 @@ initialize_group_array () | |||
| 567 | { | 567 | { |
| 568 | ngroups = getgroups(0, NULL); | 568 | ngroups = getgroups(0, NULL); |
| 569 | if ((group_array = realloc(group_array, ngroups * sizeof(gid_t))) == NULL) | 569 | if ((group_array = realloc(group_array, ngroups * sizeof(gid_t))) == NULL) |
| 570 | fatalError("Out of space"); | 570 | fatalError("Out of space\n"); |
| 571 | 571 | ||
| 572 | getgroups(ngroups, group_array); | 572 | getgroups(ngroups, group_array); |
| 573 | } | 573 | } |
