Changeset 404


Ignore:
Timestamp:
Jul 16, 2003, 9:07:20 PM (22 years ago)
Author:
bird
Message:

Fking hacks. the stupid stupid va_start hacks didn't work with the builtin va_start!

Location:
trunk/src/emx/src/lib/process
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/process/execl.c

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r403 r404  
    1212  /* Note: Passing `arg0' to spawnv() is not portable. */
    1313
    14   result = spawnv (P_OVERLAY, name, &arg0);
     14  result = spawnv (P_OVERLAY, name, (char * const *) &arg0);
    1515  return result;
    1616}
  • trunk/src/emx/src/lib/process/execle.c

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r403 r404  
    1212  int result;
    1313
    14   va_start (arg_ptr, name);
     14  va_start (arg_ptr, arg0);
    1515  while (va_arg (arg_ptr, char *) != NULL)
    1616    /* do nothing */;
     
    2020  /* Note: Passing `&arg0' to spawnve() is not portable. */
    2121
    22   result = spawnve (P_OVERLAY, name, &arg0, env_ptr);
     22  result = spawnve (P_OVERLAY, name, (char * const *)&arg0, env_ptr);
    2323  return result;
    2424}
  • trunk/src/emx/src/lib/process/execlp.c

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r403 r404  
    1212  /* Note: Passing `&arg0' to spawnvp() is not portable. */
    1313
    14   result = spawnvp (P_OVERLAY, name, &arg0);
     14  result = spawnvp (P_OVERLAY, name, (char * const *)&arg0);
    1515  return result;
    1616}
  • trunk/src/emx/src/lib/process/execlpe.c

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r403 r404  
    1212  int result;
    1313
    14   va_start (arg_ptr, name);
     14  va_start (arg_ptr, arg0);
    1515  while (va_arg (arg_ptr, char *) != NULL)
    1616    /* do nothing */;
     
    2020  /* Note: Passing `&arg0' to spawnvpe() is not portable. */
    2121
    22   result = spawnvpe (P_OVERLAY, name, &arg0, env_ptr);
     22  result = spawnvpe (P_OVERLAY, name, (char * const *)&arg0, env_ptr);
    2323  return result;
    2424}
  • trunk/src/emx/src/lib/process/spawnl.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r403 r404  
    1212  /* Note: Passing `&arg0' to spawnv() is not portable. */
    1313
    14   result = spawnv (mode, name, &arg0);
     14  result = spawnv (mode, name, (char * const *)&arg0);
    1515  return result;
    1616}
  • trunk/src/emx/src/lib/process/spawnle.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r403 r404  
    1212  int result;
    1313
    14   va_start (arg_ptr, name);
     14  va_start (arg_ptr, arg0);
    1515  while (va_arg (arg_ptr, char *) != NULL)
    1616    /* do nothing */;
     
    2020  /* Note: Passing `&arg0' to spawnve() is not portable. */
    2121
    22   result = spawnve (mode, name, &arg0, env_ptr);
     22  result = spawnve (mode, name, (char * const *)&arg0, env_ptr);
    2323  return result;
    2424}
  • trunk/src/emx/src/lib/process/spawnlp.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r403 r404  
    1212  /* Note: Passing `&arg0' to spawnvp() is not portable. */
    1313
    14   result = spawnvp (mode, name, &arg0);
     14  result = spawnvp (mode, name, (char * const *)&arg0);
    1515  return result;
    1616}
  • trunk/src/emx/src/lib/process/spawnlpe.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r403 r404  
    2020  /* Note: Passing `&arg0' to spawnvpe() is not portable. */
    2121
    22   result = spawnvpe (mode, name, &arg0, env_ptr);
     22  result = spawnvpe (mode, name, (char * const *)&arg0, env_ptr);
    2323  return result;
    2424}
Note: See TracChangeset for help on using the changeset viewer.