From 5c2c429f145822aadfbd1c064c94096fedc1f2c4 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 1 Jul 2004 20:32:18 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=3737 --- db/boinc_db.C | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/db/boinc_db.C b/db/boinc_db.C index 9879bcb7d1..4fafc59749 100644 --- a/db/boinc_db.C +++ b/db/boinc_db.C @@ -636,8 +636,6 @@ int DB_TRANSITIONER_ITEM_SET::enumerate( cursor.rp = mysql_store_result(db->mysql); if (!cursor.rp) return mysql_errno(db->mysql); cursor.active = true; - //nrows = mysql_num_rows(cursor.rp); - //current_row = 0; row = mysql_fetch_row(cursor.rp); if (!row) { @@ -683,11 +681,11 @@ void TRANSITIONER_ITEM::parse(MYSQL_ROW& r) { assimilate_state = atoi(r[i++]); target_nresults = atoi(r[i++]); strcpy2(result_template_file, r[i++]); - res_id = atoi(r[i++]); - res_report_deadline = atoi(r[i++]); - res_server_state = atoi(r[i++]); - res_outcome = atoi(r[i++]); - res_validate_state = atoi(r[i++]); - res_file_delete_state = atoi(r[i++]); - res_sent_time = atoi(r[i++]); + res_id = safe_atoi(r[i++]); + res_report_deadline = safe_atoi(r[i++]); + res_server_state = safe_atoi(r[i++]); + res_outcome = safe_atoi(r[i++]); + res_validate_state = safe_atoi(r[i++]); + res_file_delete_state = safe_atoi(r[i++]); + res_sent_time = safe_atoi(r[i++]); }