diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | sysdeps/unix/opendir.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 040e0c01f9..8641abe1fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/sysdeps/unix/opendir.c b/sysdeps/unix/opendir.c index cf83847847..461f82bc97 100644 --- a/sysdeps/unix/opendir.c +++ b/sysdeps/unix/opendir.c @@ -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; |