IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20407


Ignore:
Timestamp:
Oct 26, 2008, 5:14:14 PM (18 years ago)
Author:
eugene
Message:

adding drop and wait as valid states

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pxtools.c

    r19092 r20407  
    3232    // XXX replace strncmp with strcmp
    3333
    34     if (!((strncmp(state, "new", 4) == 0)
    35     || (strncmp(state, "reg", 3) == 0)
    36     || (strncmp(state, "full", 5) == 0)
    37     || (strncmp(state, "goto_cleaned", 8) == 0)
    38     || (strncmp(state, "cleaned", 8) == 0)
    39     || (strncmp(state, "update", 7) == 0)
    40     || (strncmp(state, "purged", 7) == 0)
    41     || (strncmp(state, "goto_purged", 12) == 0))) {
    42         return false;
    43     }
     34    if (!strcmp(state, "new")) return true;
     35    if (!strcmp(state, "reg")) return true;
     36    if (!strcmp(state, "full")) return true;
     37    if (!strcmp(state, "drop")) return true;
     38    if (!strcmp(state, "wait")) return true;
     39    if (!strcmp(state, "goto_cleaned")) return true;
     40    if (!strcmp(state, "cleaned")) return true;
     41    if (!strcmp(state, "update")) return true;
     42    if (!strcmp(state, "purged")) return true;
     43    if (!strcmp(state, "goto_purged")) return true;
    4444
    45     return true;
     45    return false;
    4646}
     47<
Note: See TracChangeset for help on using the changeset viewer.