|
From: Joshua P. <jpr...@us...> - 2004-08-05 02:01:25
|
Update of /cvsroot/middle-man/middleman/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26192/src Modified Files: main.c Log Message: 1. Revert yesterday's patch removing some local variables. Instead of removing, move them into a tighter scope. 2. Detect libpcre using pcre-config (similar to pkg-config). Index: main.c =================================================================== RCS file: /cvsroot/middle-man/middleman/src/main.c,v retrieving revision 1.216 retrieving revision 1.217 diff -C2 -d -r1.216 -r1.217 *** main.c 4 Aug 2004 06:17:37 -0000 1.216 --- main.c 5 Aug 2004 02:01:16 -0000 1.217 *************** *** 431,439 **** SSL_thread_setup(); ! // XXX: a better random source is needed ! for (x = 0; x < sizeof(buf); x++) ! buf[x] = rand() % 255; ! RAND_seed(buf, sizeof(buf)); #endif --- 431,442 ---- SSL_thread_setup(); ! { ! // XXX: a better random source is needed ! char buf[1024]; ! for (int x = 0; x < sizeof(buf); x++) ! buf[x] = rand() % 255; ! RAND_seed(buf, sizeof(buf)); ! } #endif |