projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8908c55
)
* Generate diffs old-to-new instead of new-to-old. I think this will be easier to...
author
Art Cancro
<ajc@citadel.org>
Wed, 14 Oct 2009 21:49:46 +0000
(21:49 +0000)
committer
Art Cancro
<ajc@citadel.org>
Wed, 14 Oct 2009 21:49:46 +0000
(21:49 +0000)
citadel/citserver.c
patch
|
blob
|
history
diff --git
a/citadel/citserver.c
b/citadel/citserver.c
index b6970bf0a1b5239cdfcd518c02615225ccb37110..1f19d0c002bc8e8d40a49d56b987f8bd8734f1bf 100644
(file)
--- a/
citadel/citserver.c
+++ b/
citadel/citserver.c
@@
-144,6
+144,7
@@
void master_startup(void) {
unsigned int seed;
FILE *urandom;
struct ctdlroom qrbuf;
+ int rv;
CtdlLogPrintf(CTDL_DEBUG, "master_startup() started\n");
time(&server_startup_time);
@@
-178,7
+179,7
@@
void master_startup(void) {
CtdlLogPrintf(CTDL_INFO, "Seeding the pseudo-random number generator...\n");
urandom = fopen("/dev/urandom", "r");
if (urandom != NULL) {
- fread(&seed, sizeof seed, 1, urandom);
+
rv =
fread(&seed, sizeof seed, 1, urandom);
fclose(urandom);
}
else {