aboutsummaryrefslogtreecommitdiffstats
path: root/src/entropy
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-24 17:00:00 +0000
committerlloyd <[email protected]>2008-11-24 17:00:00 +0000
commita35c7f3f51a36977a9b39142edad648c450f5573 (patch)
tree64c72bd6687d07692e13a0b09f5ec7769cf41eb7 /src/entropy
parentaeddc179a79747dd121dc8a7f097475a92cda5ce (diff)
In es_ftw, remove check for if the return value of read() is larger
than the value we gave it. This is pretty unlikely... also caused an annoying warning with some versions of GCC b/c it couldn't figure out the signed/unsigned comparison was safe in this case.
Diffstat (limited to 'src/entropy')
-rw-r--r--src/entropy/proc_walk/es_ftw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entropy/proc_walk/es_ftw.cpp b/src/entropy/proc_walk/es_ftw.cpp
index f92a0cf82..1ad6c56b6 100644
--- a/src/entropy/proc_walk/es_ftw.cpp
+++ b/src/entropy/proc_walk/es_ftw.cpp
@@ -136,7 +136,7 @@ u32bit FTW_EntropySource::slow_poll(byte buf[], u32bit length)
ssize_t got = ::read(fd, read_buf.begin(), read_buf.size());
- if(got > 0 && got <= read_buf.size())
+ if(got > 0)
{
buf_i = xor_into_buf(buf, buf_i, length, read_buf, got);