Skip to content

Commit 97fe978

Browse files
committed
Fix GCC 15 warnings
1 parent 6462998 commit 97fe978

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

newlib/libc/posix/glob.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ glob3(pathbuf, pathend, pathend_last, pattern, restpattern, pglob, limit)
620620
* and dirent.h as taking pointers to differently typed opaque
621621
* structures.
622622
*/
623-
struct dirent *(*readdirfunc)();
623+
struct dirent *(*readdirfunc)(void *);
624624

625625
if (pathend > pathend_last)
626626
return (1);
@@ -645,7 +645,7 @@ glob3(pathbuf, pathend, pathend_last, pattern, restpattern, pglob, limit)
645645
if (pglob->gl_flags & GLOB_ALTDIRFUNC)
646646
readdirfunc = pglob->gl_readdir;
647647
else
648-
readdirfunc = readdir;
648+
readdirfunc = (struct dirent *(*)(void *))readdir;
649649
while ((dp = (*readdirfunc)(dirp))) {
650650
u_char *sc;
651651
Char *dc;

0 commit comments

Comments
 (0)