IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 12, 2006, 1:17:11 AM (20 years ago)
Author:
eugene
Message:

adding ASSERTs all over

File:
1 edited

Legend:

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

    r8424 r10652  
    6868  }
    6969
    70 # if 0
    71     host = PullHostFromStackByName (PCONTROL_HOST_IDLE, argv[2]);
    72     if (host) {
    73       StopHost (host);
    74       OffHost (host);
    75       ClearCheckPoint ();
    76       return (TRUE);
    77     }
    78     host = PullHostFromStackByName (PCONTROL_HOST_DOWN, argv[2]);
    79     if (host) {
    80       OffHost (host);
    81       ClearCheckPoint ();
    82       return (TRUE);
    83     }
    84     /* XXX the 'markoff' flag is not being checked */
    85     host = PullHostFromStackByName (PCONTROL_HOST_BUSY, argv[2]);
    86     if (host) {
    87       host[0].markoff  = TRUE;
    88       PutHost (host, PCONTROL_HOST_BUSY, STACK_BOTTOM);
    89       ClearCheckPoint ();
    90       return (TRUE);
    91     }
    92     /* XXX the 'markoff' flag is not being checked */
    93     host = PullHostFromStackByName (PCONTROL_HOST_DONE, argv[2]);
    94     if (host) {
    95       host[0].markoff  = TRUE;
    96       PutHost (host, PCONTROL_HOST_DONE, STACK_BOTTOM);
    97       ClearCheckPoint ();
    98       return (TRUE);
    99     }
    100     gprint (GP_LOG, "host %s is not found (already off?)\n", argv[2]);
    101     ClearCheckPoint ();
    102     return (FALSE);
    103   }
    104 # endif
    105 
    10670  if (!strcasecmp (argv[1], "DELETE")) {
    10771    // a check point is not required: no possible thief
Note: See TracChangeset for help on using the changeset viewer.