aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf-io.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2003-01-17 14:27:29 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2003-01-17 14:27:29 +0000
commit1faad0fc2cdaddf0387b1d397ad5ee94044e54cd (patch)
tree8b9f635953f793322eb12b484a35d958b1211dd1 /gcc/java/jcf-io.c
parentfbe5a4a607f0dcb330bbb63e041c1dfaf63c883b (diff)
downloadgcc-1faad0fc2cdaddf0387b1d397ad5ee94044e54cd.zip
gcc-1faad0fc2cdaddf0387b1d397ad5ee94044e54cd.tar.gz
gcc-1faad0fc2cdaddf0387b1d397ad5ee94044e54cd.tar.bz2
* jcf-io.c (caching_stat): Cast the 3rd arg of scandir to void*.
From-SVN: r61444
Diffstat (limited to 'gcc/java/jcf-io.c')
-rw-r--r--gcc/java/jcf-io.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c
index d2e7793..6fe472f 100644
--- a/gcc/java/jcf-io.c
+++ b/gcc/java/jcf-io.c
@@ -368,11 +368,10 @@ caching_stat (char *filename, struct stat *buf)
/* Unfortunately, scandir is not fully standardized. In
particular, the type of the function pointer passed as the
third argument sometimes takes a "const struct dirent *"
- parameter, and sometimes just a "struct dirent *". We rely
- on the ability to interchange these two types of function
- pointers. */
+ parameter, and sometimes just a "struct dirent *". We cast
+ to (void *) so that either way it is quietly accepted. */
dent->num_files = scandir (filename, &dent->files,
- java_or_class_file,
+ (void *) java_or_class_file,
alphasort);
*slot = dent;
}