mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=7203
This commit is contained in:
parent
51389d099d
commit
a1f3b093d0
|
@ -565,13 +565,9 @@ static void handle_lookup_google(char*, MIOFILE&) {
|
|||
}
|
||||
|
||||
static void handle_lookup_google_poll(char*, MIOFILE& fout) {
|
||||
if (gstate.lookup_google_op.error_num) {
|
||||
fout.printf("<lookup_website>\n");
|
||||
fout.printf(" <error_num>%d</error_num>\n", gstate.lookup_google_op.error_num);
|
||||
fout.printf("</lookup_website>\n");
|
||||
} else {
|
||||
fout.printf("%s", gstate.lookup_google_op.reply.c_str());
|
||||
}
|
||||
fout.printf("<lookup_website>\n");
|
||||
fout.printf(" <error_num>%d</error_num>\n", gstate.lookup_google_op.error_num);
|
||||
fout.printf("</lookup_website>\n");
|
||||
}
|
||||
|
||||
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) {
|
||||
if (gstate.lookup_yahoo_op.error_num) {
|
||||
fout.printf("<lookup_website>\n");
|
||||
fout.printf(" <error_num>%d</error_num>\n", gstate.lookup_yahoo_op.error_num);
|
||||
fout.printf("</lookup_website>\n");
|
||||
} else {
|
||||
fout.printf("%s", gstate.lookup_yahoo_op.reply.c_str());
|
||||
}
|
||||
fout.printf("<lookup_website>\n");
|
||||
fout.printf(" <error_num>%d</error_num>\n", gstate.lookup_yahoo_op.error_num);
|
||||
fout.printf("</lookup_website>\n");
|
||||
}
|
||||
|
||||
int GUI_RPC_CONN::handle_rpc() {
|
||||
|
|
|
@ -869,7 +869,7 @@ int LOOKUP_WEBSITE::parse(MIOFILE& in) {
|
|||
}
|
||||
|
||||
void LOOKUP_WEBSITE::clear() {
|
||||
error_num = -1;
|
||||
error_num = 0;
|
||||
}
|
||||
|
||||
/////////// END OF PARSING FUNCTIONS. RPCS START HERE ////////////////
|
||||
|
|
|
@ -56,7 +56,7 @@ int MFILE::open(const char* path, const char* mode) {
|
|||
}
|
||||
|
||||
int MFILE::vprintf(const char* format, va_list ap) {
|
||||
char buf2[20000];
|
||||
char buf2[65536];
|
||||
int n, k;
|
||||
|
||||
k = vsprintf(buf2, format, ap);
|
||||
|
|
Loading…
Reference in New Issue