Fix loop.h dependencies.
[oweals/busybox.git] / test.c
diff --git a/test.c b/test.c
index 818b3db1279ba208762708eae5d9d90c29bf2fd9..a2bec44924f7f42c00e1f8421966f15ec57f971f 100644 (file)
--- a/test.c
+++ b/test.c
@@ -33,7 +33,6 @@
 
 #include "internal.h"
 #include <sys/types.h>
-#include <sys/stat.h>
 #include <unistd.h>
 #include <ctype.h>
 #include <errno.h>
@@ -556,9 +555,7 @@ static void
 initialize_group_array ()
 {
        ngroups = getgroups(0, NULL);
-       if ((group_array = realloc(group_array, ngroups * sizeof(gid_t))) == NULL)
-               fatalError("Out of space\n");
-
+       group_array = xrealloc(group_array, ngroups * sizeof(gid_t));
        getgroups(ngroups, group_array);
 }