aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-11-26 09:50:34 +0000
committerUlrich Drepper <drepper@redhat.com>2000-11-26 09:50:34 +0000
commitff8beceed165a7a411a63e4a78fd93f810bdcb14 (patch)
tree65c9536ca0e21fa3eb95316d56580507cf6d0fa5 /sysdeps
parentc3301189bde66bceb3e949e4938b167fc847dd86 (diff)
downloadglibc-ff8beceed165a7a411a63e4a78fd93f810bdcb14.zip
glibc-ff8beceed165a7a411a63e4a78fd93f810bdcb14.tar.gz
glibc-ff8beceed165a7a411a63e4a78fd93f810bdcb14.tar.bz2
Update.
* sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/opendir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/opendir.c b/sysdeps/unix/opendir.c
index cf83847..461f82b 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;