diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-05-11 20:01:37 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-05-11 20:01:37 +0000 |
commit | 40c90e71e79db668ac6f806ad8893aa84ab5b052 (patch) | |
tree | 3b410f736e3de856b19732f5226f6408f70f98a6 /test/stdlib/qsort.c | |
parent | 0d863ccb78ec9f4a71c72491f2f0c59290346df2 (diff) |
Fix a couple silly bugs in this test
Diffstat (limited to 'test/stdlib/qsort.c')
-rw-r--r-- | test/stdlib/qsort.c | 3 |
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]; |