From 044dd3e2ba3625e0e0bfed1f3aa14d22fc29a05b Mon Sep 17 00:00:00 2001
From: ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Fri, 17 Jan 2003 14:27:29 +0000
Subject: 	* jcf-io.c (caching_stat): Cast the 3rd arg of scandir to
 void*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61444 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/java/jcf-io.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

(limited to 'gcc/java/jcf-io.c')

diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c
index d2e779337d4..6fe472f1e0a 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;
     }
-- 
cgit v1.2.1