minor changes

svn path=/trunk/boinc/; revision=382
This commit is contained in:
Eric Heien 2002-08-26 22:50:36 +00:00
parent e029476a87
commit 648f9c70dc
3 changed files with 8 additions and 6 deletions

View File

@ -651,7 +651,7 @@ bool ACTIVE_TASK_SET::poll_time() {
// Gets the next available free slot, or returns -1 if all slots are full
//
int ACTIVE_TASK_SET::get_free_slot(int total_slots) {
int start_slot,i;
int i;
char *slot_status;
if (active_tasks.size() >= total_slots)

View File

@ -797,6 +797,8 @@ bool CLIENT_STATE::time_to_exit() {
}
void CLIENT_STATE::set_client_state_dirty(char* source) {
printf("set dirty: %s\n", source);
if (log_flags.state_debug) {
printf("set dirty: %s\n", source);
}
client_state_dirty = true;
}

View File

@ -432,11 +432,11 @@ bool HTTP_OP_SET::poll() {
printf("finished sending request body\n");
}
htp->http_op_state = HTTP_STATE_REPLY_HEADER;
if (htp->file) {
if (htp->file) {
fclose(htp->file);
} else {
printf("HTTP_OP_SET::poll(): unexpected NULL file\n");
}
} else {
printf("HTTP_OP_SET::poll(): unexpected NULL file\n");
}
htp->file = 0;
htp->do_file_io = false;
htp->want_upload = false;