OSDN Git Service
(root)
/
uclinux-h8
/
uclibc-ng.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70f5583
)
allow for runtime testing
author
Mike Frysinger
<vapier@gentoo.org>
Tue, 14 Feb 2006 03:34:43 +0000
(
03:34
-0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Tue, 14 Feb 2006 03:34:43 +0000
(
03:34
-0000)
test/misc/dirent.c
patch
|
blob
|
history
diff --git
a/test/misc/dirent.c
b/test/misc/dirent.c
index
f8832f6
..
c8db2c8
100644
(file)
--- a/
test/misc/dirent.c
+++ b/
test/misc/dirent.c
@@
-18,12
+18,12
@@
const char const *types[] = {
_DTIFY(DT_WHT)
};
-int main(int argc, char *
*argv
)
+int main(int argc, char *
argv[]
)
{
DIR *dirh;
struct dirent *de;
struct dirent64 *de64;
- const char
const mydir[] = "."
;
+ const char
*mydir = (argc == 1 ? "/" : argv[1])
;
if ((dirh = opendir(mydir)) == NULL) {
perror("opendir");