Changeset 5800 for trunk


Ignore:
Timestamp:
Aug 4, 2015 1:51:04 PM (8 years ago)
Author:
clarksm
Message:

Cleanup compiler warnings, errors.

Location:
trunk/lang
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/matlab/rpExec.c

    r5799 r5800  
    7676   char           *stdoutBuffer;
    7777   char           *stderrBuffer;
    78 
    79    pipe(stdoutPipe);
    80    pipe(stderrPipe);
     78   int             error;
     79
     80   error = pipe(stdoutPipe);
     81   error = pipe(stderrPipe);
    8182
    8283   if((pid = fork()) < 0) {
  • trunk/lang/octave/src/rpExec.cc

    r5799 r5800  
    7676   char           *stdoutBuffer;
    7777   char           *stderrBuffer;
    78 
    79    pipe(stdoutPipe);
    80    pipe(stderrPipe);
     78   int             error;
     79
     80   error = pipe(stdoutPipe);
     81   error = pipe(stderrPipe);
    8182
    8283   if((pid = fork()) < 0) {
     
    250251         commandArgs = (char **)calloc(commandCell.numel()+1,sizeof(char *));
    251252         for(i1=0; i1<commandCell.numel(); i1++) {
    252             commandArg = c(i1).string_value().c_str();
     253            commandArg = commandCell(i1).string_value().c_str();
    253254            commandArgs[i1] = (char *)calloc(strlen(commandArg)+1,sizeof(char));
    254255            strcpy(commandArgs[i1],commandArg);
Note: See TracChangeset for help on using the changeset viewer.