IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8183


Ignore:
Timestamp:
Aug 4, 2006, 4:05:30 PM (20 years ago)
Author:
eugene
Message:

fixed logic on FindNamedHostStack (N >= 0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pcontrol/HostOps.c

    r7917 r8183  
    6262
    6363  N = FindNamedHost (name, PCONTROL_HOST_IDLE);
    64   if (N > 0) return (PCONTROL_HOST_IDLE);
     64  if (N >= 0) return (PCONTROL_HOST_IDLE);
    6565
    6666  N = FindNamedHost (name, PCONTROL_HOST_DOWN);
    67   if (N > 0) return (PCONTROL_HOST_DOWN);
     67  if (N >= 0) return (PCONTROL_HOST_DOWN);
    6868
    6969  N = FindNamedHost (name, PCONTROL_HOST_DONE);
    70   if (N > 0) return (PCONTROL_HOST_DONE);
     70  if (N >= 0) return (PCONTROL_HOST_DONE);
    7171
    7272  N = FindNamedHost (name, PCONTROL_HOST_BUSY);
    73   if (N > 0) return (PCONTROL_HOST_BUSY);
     73  if (N >= 0) return (PCONTROL_HOST_BUSY);
    7474
    7575  N = FindNamedHost (name, PCONTROL_HOST_OFF);
    76   if (N > 0) return (PCONTROL_HOST_OFF);
     76  if (N >= 0) return (PCONTROL_HOST_OFF);
    7777
    7878  return (-1);
Note: See TracChangeset for help on using the changeset viewer.