IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2005, 1:04:22 PM (21 years ago)
Author:
eugene
Message:

cleanups so -Wall -Werror succeed, some .h reorgs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pantasks/ControllerOps.c

    r4684 r4689  
    2020    GetJobOutput ("stderr", job[0].pid, &job[0].stderr, job[0].stderr_size);
    2121  } 
     22  return (TRUE);
    2223}
    2324
     
    157158  /* construct the controller command portion */
    158159  if (!strcmp (job[0].task[0].host, "NONE")) {
    159     sprintf (cmd, "job", cmd);
     160    sprintf (cmd, "job");
    160161  } else {
    161162    if (job[0].task[0].host_required) {
     
    391392  IOBuffer buffer;
    392393
     394  if (!CheckControllerStatus()) return (TRUE);
     395
    393396  sprintf (cmd, "kill %d", job[0].pid);
    394397  InitIOBuffer (&buffer, 0x100);
     
    400403}
    401404
     405int QuitController () {
     406
     407  int status;
     408  char cmd[128];
     409  IOBuffer buffer;
     410
     411  if (!CheckControllerStatus()) return (TRUE);
     412
     413  sprintf (cmd, "quit");
     414  InitIOBuffer (&buffer, 0x100);
     415  status = ControllerCommand (cmd, CONTROLLER_PROMPT, &buffer);
     416  return (TRUE);
     417}
     418
    402419/* memstr returns a view, not an allocated string : don't free */
Note: See TracChangeset for help on using the changeset viewer.