summaryrefslogtreecommitdiff
path: root/test/stdlib/qsort.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/stdlib/qsort.c')
-rw-r--r--test/stdlib/qsort.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/stdlib/qsort.c b/test/stdlib/qsort.c
index 50464979e..9e706c78d 100644
--- a/test/stdlib/qsort.c
+++ b/test/stdlib/qsort.c
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <dirent.h>
#include <stdlib.h>
+#include <unistd.h>
int select_files(const struct dirent *dirbuf)
{
@@ -33,7 +34,7 @@ int main(void)
dirbuf = array[i];
printf("[%d] %s\n", i, dirbuf->d_name);
}
- printf("\nCalling qsort()\n", numdir);
+ printf("\nCalling qsort()\n");
qsort(array, numdir, sizeof(struct dirent *), alphasort);
for (i = 0; i < numdir; ++i) {
dirbuf = array[i];