IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18706


Ignore:
Timestamp:
Jul 24, 2008, 9:37:14 AM (18 years ago)
Author:
Paul Price
Message:

Work around stupid "warning: 'i' may be used uninitialized in this
function" from Tommy's gcc 4.0.1.

File:
1 edited

Legend:

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

    r18084 r18706  
    55
    66/* connect to host, start the shell: ssh hostname pclient -> command hostname shell
    7    stdio is an array of file descriptors (stdio[3]) 
     7   stdio is an array of file descriptors (stdio[3])
    88*/
    99
    1010int rconnect (char *command, char *hostname, char *shell, int *stdio) {
    1111
    12   int i, stdin_fd[2], stdout_fd[2], stderr_fd[2], status;
     12  int i = 0, stdin_fd[2], stdout_fd[2], stderr_fd[2], status;
    1313  int result, waitstatus;
    1414  pid_t pid;
     
    5656    setvbuf (stderr, (char *) NULL, _IONBF, BUFSIZ);
    5757
    58     status = execvp (argv[0], argv); 
     58    status = execvp (argv[0], argv);
    5959    gprint (GP_ERR, "error starting remote shell process\n");
    6060    pcontrol_exit (60);
Note: See TracChangeset for help on using the changeset viewer.