IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 26, 2012, 11:46:01 AM (14 years ago)
Author:
eugene
Message:

updates for pedantic gcc, mods to relphot average mags to handle GPC1 stacks

Location:
trunk/Ohana/src/opihi/pantasks
Files:
3 edited

Legend:

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

    r32632 r34088  
    6363int CheckControllerJob (Job *job) {
    6464  struct timeval start, stop;
    65   float dtime;
    6665
    6766  gettimeofday (&start, (void *) NULL);
    6867  CheckControllerJobStatus (job);
    6968  gettimeofday (&stop, (void *) NULL);
    70   dtime = DTIME (stop, start);
    71   /* if (VerboseMode()) gprint (GP_ERR, "check job status %f\n", dtime); */
     69  // float dtime = DTIME (stop, start);
     70  // if (VerboseMode()) gprint (GP_ERR, "check job status %f\n", dtime);
    7271
    7372  if ((job[0].state == JOB_EXIT) || (job[0].state == JOB_CRASH)) {
     
    7574    GetJobOutput ("stdout", job[0].pid, &job[0].stdout_buff, job[0].stdout_size);
    7675    gettimeofday (&stop, (void *) NULL);
    77     dtime = DTIME (stop, start);
     76    // float dtime = DTIME (stop, start);
    7877    /* if (VerboseMode()) gprint (GP_ERR, "get stdout %f\n", dtime); */
    7978
     
    8180    GetJobOutput ("stderr", job[0].pid, &job[0].stderr_buff, job[0].stderr_size);
    8281    gettimeofday (&stop, (void *) NULL);
    83     dtime = DTIME (stop, start);
     82    // float dtime = DTIME (stop, start);
    8483    /* if (VerboseMode()) gprint (GP_ERR, "get stderr %f\n", dtime); */
    8584
     
    8786    DeleteControllerJob (job);
    8887    gettimeofday (&stop, (void *) NULL);
    89     dtime = DTIME (stop, start);
     88    // float dtime = DTIME (stop, start);
    9089    /* if (VerboseMode()) gprint (GP_ERR, "delete job %f\n", dtime); */
    9190  } 
     
    578577int QuitController () {
    579578
    580   int status;
    581579  char cmd[128];
    582580  IOBuffer buffer;
     
    586584  sprintf (cmd, "quit");
    587585  InitIOBuffer (&buffer, 0x100);
    588   status = ControllerCommand (cmd, NULL, &buffer);
     586  ControllerCommand (cmd, NULL, &buffer);
    589587  FreeIOBuffer (&buffer);
    590588
  • trunk/Ohana/src/opihi/pantasks/client_shell.c

    r31666 r34088  
    44int client_shell (int argc, char **argv) {
    55
    6   int Nbad, status;
     6  int Nbad;
    77  char *line, *prompt, *history;
    88  pid_t ppid;
     
    4141
    4242    if (*line) {
    43         status = multicommand (line);
     43      // status = multicommand (line); do something different if false?
     44        multicommand (line);
    4445        add_history (line);
    4546        append_history (1, history);
  • trunk/Ohana/src/opihi/pantasks/task.c

    r32632 r34088  
    55
    66  int hash;
    7   int ThisList, status;
     7  int ThisList;
    88  char *input, *outline;
    99  Task *task;
     
    8282      case TASK_NPENDING:
    8383      case TASK_ACTIVE:
    84         status = command (input, &outline, TRUE);
     84        // status = command(); do something with this info?
     85        command (input, &outline, TRUE);
    8586        if (outline != NULL) free (outline);
    86         /* what to do if command is invalid?
    87            if (!status) return (FALSE); */
    8887        break;
    8988
Note: See TracChangeset for help on using the changeset viewer.