From: Art Cancro Date: Wed, 14 Oct 2009 21:49:46 +0000 (+0000) Subject: * Generate diffs old-to-new instead of new-to-old. I think this will be easier to... X-Git-Tag: v7.86~754 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=bf1296166f08b1beb8706c4356b45d18bb71b830 * Generate diffs old-to-new instead of new-to-old. I think this will be easier to work with because we can just append. Maybe I'll change my mind again. Right now it's just writing them to the log. In a little while I'll start writing them to disk and we'll see how it goes. --- diff --git a/citadel/citserver.c b/citadel/citserver.c index b6970bf0a..1f19d0c00 100644 --- 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 {