* sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning.
This commit is contained in:
Ulrich Drepper 2000-11-26 09:50:34 +00:00
parent c3301189bd
commit ff8beceed1
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,7 @@
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/rcmd.c: Likewise.
* inet/ruserpass.c: Likewise.

View File

@ -131,7 +131,8 @@ __opendir (const char *name)
goto lose;
#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);
else
allocation = statbuf.st_blksize;