Commit 1faad0fc by Kaveh R. Ghazi Committed by Kaveh Ghazi

* jcf-io.c (caching_stat): Cast the 3rd arg of scandir to void*.

From-SVN: r61444
parent fbe5a4a6
2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* jcf-io.c (caching_stat): Cast the 3rd arg of scandir to void*.
2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* builtins.c (java_build_function_call_expr): Renamed from
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment