IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 22, 2008, 9:10:30 AM (18 years ago)
Author:
eugene
Message:

changing state from old values (run, stop) to new set (new, full, cleaned, etc); using pxIsValidState where possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080719/ippTools/src/difftool.c

    r18643 r18659  
    265265
    266266    if (count == 2) {
    267         if (!setdiffRunState(config, diff_id, "run")) {
     267        if (!setdiffRunState(config, diff_id, "new")) {
    268268            if (!psDBRollback(config->dbh)) {
    269269                psError(PS_ERR_UNKNOWN, false, "database error");
     
    502502    }
    503503
    504     if (!setdiffRunState(config, diff_id, "stop")) {
     504    if (!setdiffRunState(config, diff_id, "full")) {
    505505        if (!psDBRollback(config->dbh)) {
    506506            psError(PS_ERR_UNKNOWN, false, "database error");
     
    636636
    637637    // check that state is a valid string value
    638     if (!(
    639             (strncmp(state, "run", 4) == 0)
    640             || (strncmp(state, "stop", 5) == 0)
    641             || (strncmp(state, "reg", 4) == 0)
    642         )
    643     ) {
    644         psError(PS_ERR_UNKNOWN, false,
    645                 "invalid diffRun state: %s", state);
     638    if (!pxIsValidState(state)) {
     639        psError(PS_ERR_UNKNOWN, false, "invalid diffRun state: %s", state);
    646640        return false;
    647641    }
Note: See TracChangeset for help on using the changeset viewer.