aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test.c b/test.c
index 9b541e33e..0a16e9328 100644
--- a/test.c
+++ b/test.c
@@ -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
252static int 252static 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}