From 36ed6019c231e85702ed1773f11e5568a1d5f561 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 9 Feb 2005 23:49:46 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=5380 --- checkin_notes | 14 ++++++++++++++ sched/sched_send.C | 2 ++ tools/backend_lib.C | 6 +++--- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index b5d9ccb0ef..56d61bfd4d 100755 --- a/checkin_notes +++ b/checkin_notes @@ -24417,3 +24417,17 @@ Rom 9 Feb 2005 clientgui/ ViewWork.cpp + +David 9 Feb 2005 + - scheduler changes to get the FCGI version to compile. + Problem: the FCGI library inexplicably doesn't provide + a version of fscanf(). + Some of Bruce's recent additions + (timezone-dependent URL, MD5 caching) use fscanf(). + I commented them out with the _USING_FCGI_ symbol. + This shouldn't affect anyone since E@h doesn't use FCGI. + + sched/ + sched_send.C + tools/ + backend_lib.C diff --git a/sched/sched_send.C b/sched/sched_send.C index ab009878b8..a20839bdfb 100644 --- a/sched/sched_send.C +++ b/sched/sched_send.C @@ -333,6 +333,7 @@ URLTYPE* read_download_list() { if (cached) return cached; +#ifndef _USING_FCGI_ if (!(fp=fopen("../download_servers", "r"))) { log_messages.printf( SCHED_MSG_LOG::CRITICAL, @@ -385,6 +386,7 @@ URLTYPE* read_download_list() { SCHED_MSG_LOG::DEBUG, "zone=%d name=%s\n", cached[i].zone, cached[i].name ); } +#endif return cached; } diff --git a/tools/backend_lib.C b/tools/backend_lib.C index c543263999..9cd66f7107 100644 --- a/tools/backend_lib.C +++ b/tools/backend_lib.C @@ -69,7 +69,8 @@ static bool got_md5_info( char *md5data, double *nbytes ) { - + bool retval=false; +#ifndef _USING_FCGI_ // look for file named FILENAME.md5 containing md5sum and length. // If found, and newer mod time than file, read md5 sum and file // length from it. @@ -77,7 +78,6 @@ static bool got_md5_info( FILE *fp; char md5name[512]; struct stat md5stat, filestat; - bool retval=false; char endline='\0'; sprintf(md5name, "%s.md5", path); @@ -110,7 +110,7 @@ static bool got_md5_info( unlink(md5name); retval=false; } - +#endif return retval; }