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/pxfake.c

    r18622 r18659  
    3535
    3636    // check that state is a valid string value
    37     if (!(
    38             (strncmp(state, "run", 4) == 0)
    39             || (strncmp(state, "stop", 5) == 0)
    40             || (strncmp(state, "reg", 4) == 0)
    41         )
    42     ) {
     37    if (!pxIsValidState(state)) {
    4338        psError(PS_ERR_UNKNOWN, false,
    4439                "invalid fakeRun state: %s", state);
     
    6358
    6459    // check that state is a valid string value
    65     if (!(
    66             (strncmp(state, "run", 4) == 0)
    67             || (strncmp(state, "stop", 5) == 0)
    68             || (strncmp(state, "reg", 4) == 0)
    69         )
    70     ) {
     60    if (!pxIsValidState(state)) {
    7161        psError(PS_ERR_UNKNOWN, false,
    7262                "invalid fakeRun state: %s", state);
     
    164154    // different on 32/64
    165155    if (!p_psDBRunQuery(config->dbh, query,
    166                 "run", // state
     156                "new", // state
    167157                workdir  ? workdir  : "NULL",
    168158                label    ? label    : "NULL",
Note: See TracChangeset for help on using the changeset viewer.