* Generate diffs old-to-new instead of new-to-old. I think this will be easier to...
authorArt Cancro <ajc@citadel.org>
Wed, 14 Oct 2009 21:49:46 +0000 (21:49 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 14 Oct 2009 21:49:46 +0000 (21:49 +0000)
citadel/citserver.c

index b6970bf0a1b5239cdfcd518c02615225ccb37110..1f19d0c002bc8e8d40a49d56b987f8bd8734f1bf 100644 (file)
@@ -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 {