Changeset 11147
- Timestamp:
- Jan 18, 2007, 4:03:14 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/dettool.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/dettool.c
r11143 r11147 981 981 return false; 982 982 } 983 983 984 984 // lookup the detRun that we will be basing this one on 985 985 psArray *detRuns = NULL; … … 999 999 return false; // unreachable 1000 1000 } 1001 1001 1002 1002 // pull the detRun object out the result array 1003 1003 detRunRow *detRun = psMemIncrRefCounter(detRuns->data[0]); 1004 1004 1005 1005 // discard the resultarray 1006 1006 psFree(detRuns) … … 1008 1008 // set the det_id to 0/NULL so the database can assign it 1009 1009 detRun->det_id = 0; 1010 1010 1011 1011 // reset the iteration to 0 1012 1012 detRun->iteration = 0; 1013 1013 1014 1014 // reset the state to "run" 1015 1015 psFree(detRun->state); … … 1219 1219 psFree(detRun); 1220 1220 1221 // get the det_id 1221 // get the det_id 1222 1222 long newDet_id = psDBLastInsertID(config->dbh); 1223 1223 … … 2327 2327 } 2328 2328 2329 if (!p_psDBRunQuery(config->dbh, query)) {2330 psError(PS_ERR_UNKNOWN, false, "database error");2331 psFree(query);2332 return false;2333 }2334 psFree(query);2335 2336 2329 if (faulted) { 2337 2330 // list only faulted rows … … 2341 2334 psStringAppend(&query, " %s", "AND detProcessedImfile.fault = 0"); 2342 2335 } 2336 2337 if (!p_psDBRunQuery(config->dbh, query)) { 2338 psError(PS_ERR_UNKNOWN, false, "database error"); 2339 psFree(query); 2340 return false; 2341 } 2342 psFree(query); 2343 2343 2344 2344 // treat limit == 0 as "no limit" … … 3255 3255 } 3256 3256 #endif 3257 3257 3258 3258 // treat limit == 0 as "no limit" 3259 3259 if (limit) { … … 6068 6068 // check that state is a valid string value 6069 6069 if (!( 6070 (strncmp(state, "run", 4) == 0) 6071 || (strncmp(state, "stop", 5) == 0) 6072 || (strncmp(state, "reg", 4) == 0) 6070 (strncmp(state, "run", 4) == 0) 6071 || (strncmp(state, "stop", 5) == 0) 6072 || (strncmp(state, "reg", 4) == 0) 6073 6073 ) 6074 6074 ) { … … 6095 6095 // check that state is a valid string value 6096 6096 if (!( 6097 (strncmp(mode, "master", 7) == 0) 6098 || (strncmp(mode, "verify", 7) == 0) 6097 (strncmp(mode, "master", 7) == 0) 6098 || (strncmp(mode, "verify", 7) == 0) 6099 6099 ) 6100 6100 ) {
Note:
See TracChangeset
for help on using the changeset viewer.
