aboutsummaryrefslogtreecommitdiffstats
path: root/src/entropy/unix_procs
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-23 18:18:52 +0000
committerlloyd <[email protected]>2008-11-23 18:18:52 +0000
commit5b051ed8a121560527797b85649ad5ffc690f922 (patch)
treef28718a252b10288a1b1bde3f523e96cec5262dc /src/entropy/unix_procs
parent817cb101ba02c2e7905e5d7eed654c526acfc25e (diff)
Use template version of xor_into_buf wherever useful in es_unix.cpp
Diffstat (limited to 'src/entropy/unix_procs')
-rw-r--r--src/entropy/unix_procs/es_unix.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/entropy/unix_procs/es_unix.cpp b/src/entropy/unix_procs/es_unix.cpp
index 853834178..1ce716bbc 100644
--- a/src/entropy/unix_procs/es_unix.cpp
+++ b/src/entropy/unix_procs/es_unix.cpp
@@ -70,7 +70,7 @@ u32bit Unix_EntropySource::fast_poll(byte buf[], u32bit length)
clear_mem(&statbuf, 1);
::stat(STAT_TARGETS[j], &statbuf);
- buf_i = xor_into_buf(buf, buf_i, length, &statbuf, sizeof(statbuf));
+ buf_i = xor_into_buf(buf, buf_i, length, statbuf);
}
u32bit ids[] = {
@@ -90,10 +90,10 @@ u32bit Unix_EntropySource::fast_poll(byte buf[], u32bit length)
clear_mem(&usage, 1);
::getrusage(RUSAGE_SELF, &usage);
- buf_i = xor_into_buf(buf, buf_i, length, &usage, sizeof(usage));
+ buf_i = xor_into_buf(buf, buf_i, length, usage);
::getrusage(RUSAGE_CHILDREN, &usage);
- buf_i = xor_into_buf(buf, buf_i, length, &usage, sizeof(usage));
+ buf_i = xor_into_buf(buf, buf_i, length, usage);
return length;
}