*** empty log message ***

svn path=/trunk/boinc/; revision=7203
This commit is contained in:
Rom Walton 2005-08-06 21:13:21 +00:00
parent 51389d099d
commit a1f3b093d0
3 changed files with 8 additions and 16 deletions

View File

@ -565,13 +565,9 @@ static void handle_lookup_google(char*, MIOFILE&) {
} }
static void handle_lookup_google_poll(char*, MIOFILE& fout) { static void handle_lookup_google_poll(char*, MIOFILE& fout) {
if (gstate.lookup_google_op.error_num) { fout.printf("<lookup_website>\n");
fout.printf("<lookup_website>\n"); fout.printf(" <error_num>%d</error_num>\n", gstate.lookup_google_op.error_num);
fout.printf(" <error_num>%d</error_num>\n", gstate.lookup_google_op.error_num); fout.printf("</lookup_website>\n");
fout.printf("</lookup_website>\n");
} else {
fout.printf("%s", gstate.lookup_google_op.reply.c_str());
}
} }
static void handle_lookup_yahoo(char*, MIOFILE&) { static void handle_lookup_yahoo(char*, MIOFILE&) {
@ -579,13 +575,9 @@ static void handle_lookup_yahoo(char*, MIOFILE&) {
} }
static void handle_lookup_yahoo_poll(char*, MIOFILE& fout) { static void handle_lookup_yahoo_poll(char*, MIOFILE& fout) {
if (gstate.lookup_yahoo_op.error_num) { fout.printf("<lookup_website>\n");
fout.printf("<lookup_website>\n"); fout.printf(" <error_num>%d</error_num>\n", gstate.lookup_yahoo_op.error_num);
fout.printf(" <error_num>%d</error_num>\n", gstate.lookup_yahoo_op.error_num); fout.printf("</lookup_website>\n");
fout.printf("</lookup_website>\n");
} else {
fout.printf("%s", gstate.lookup_yahoo_op.reply.c_str());
}
} }
int GUI_RPC_CONN::handle_rpc() { int GUI_RPC_CONN::handle_rpc() {

View File

@ -869,7 +869,7 @@ int LOOKUP_WEBSITE::parse(MIOFILE& in) {
} }
void LOOKUP_WEBSITE::clear() { void LOOKUP_WEBSITE::clear() {
error_num = -1; error_num = 0;
} }
/////////// END OF PARSING FUNCTIONS. RPCS START HERE //////////////// /////////// END OF PARSING FUNCTIONS. RPCS START HERE ////////////////

View File

@ -56,7 +56,7 @@ int MFILE::open(const char* path, const char* mode) {
} }
int MFILE::vprintf(const char* format, va_list ap) { int MFILE::vprintf(const char* format, va_list ap) {
char buf2[20000]; char buf2[65536];
int n, k; int n, k;
k = vsprintf(buf2, format, ap); k = vsprintf(buf2, format, ap);