Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
1faad0fc
Commit
1faad0fc
authored
22 years ago
by
Kaveh R. Ghazi
Committed by
Kaveh Ghazi
22 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* jcf-io.c (caching_stat): Cast the 3rd arg of scandir to void*.
From-SVN: r61444
parent
fbe5a4a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
gcc/java/ChangeLog
+4
-0
gcc/java/jcf-io.c
+3
-4
No files found.
gcc/java/ChangeLog
View file @
1faad0fc
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
...
...
This diff is collapsed.
Click to expand it.
gcc/java/jcf-io.c
View file @
1faad0fc
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment