mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-12 11:03:57 +08:00
Update.
* sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning.
This commit is contained in:
parent
c3301189bd
commit
ff8beceed1
@ -1,5 +1,7 @@
|
|||||||
2000-11-26 Ulrich Drepper <drepper@redhat.com>
|
2000-11-26 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning.
|
||||||
|
|
||||||
* inet/getnameinfo.c: Adjust casts to avoid warnings.
|
* inet/getnameinfo.c: Adjust casts to avoid warnings.
|
||||||
* inet/rcmd.c: Likewise.
|
* inet/rcmd.c: Likewise.
|
||||||
* inet/ruserpass.c: Likewise.
|
* inet/ruserpass.c: Likewise.
|
||||||
|
@ -131,7 +131,8 @@ __opendir (const char *name)
|
|||||||
goto lose;
|
goto lose;
|
||||||
|
|
||||||
#ifdef _STATBUF_ST_BLKSIZE
|
#ifdef _STATBUF_ST_BLKSIZE
|
||||||
if (__builtin_expect (statbuf.st_blksize < sizeof (struct dirent), 0))
|
if (__builtin_expect ((size_t) statbuf.st_blksize < sizeof (struct dirent),
|
||||||
|
0))
|
||||||
allocation = sizeof (struct dirent);
|
allocation = sizeof (struct dirent);
|
||||||
else
|
else
|
||||||
allocation = statbuf.st_blksize;
|
allocation = statbuf.st_blksize;
|
||||||
|
Loading…
Reference in New Issue
Block a user