Changeset 1652:940ffafab455 in roaraudio


Ignore:
Timestamp:
05/07/09 17:37:47 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

do a better casting on exec()s

Location:
libroar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libroar/socket.c

    r1644 r1652  
    671671  snprintf(fhstr, 7, "%i", socks[1]); 
    672672 
    673   execlp("roard", "roard", "--no-listen", "--client-fh", fhstr, NULL); 
     673  execlp("roard", "roard", "--no-listen", "--client-fh", fhstr, (char*)NULL); 
    674674 
    675675  // we are still alive? 
     
    10211021  dup2(socks[1], 1); 
    10221022 
    1023   execlp("sh", "sh", "-c", cmd, NULL); 
     1023  execlp("sh", "sh", "-c", cmd, (char*)NULL); 
    10241024 
    10251025  // we are still alive? 
  • libroar/vio_cmd.c

    r1612 r1652  
    181181     _exit(1); 
    182182 
    183     execlp("/bin/sh", "/bin/sh", "-c", child->cmd, NULL); 
     183    execlp("/bin/sh", "/bin/sh", "-c", child->cmd, (char*)NULL); 
    184184 
    185185    _exit(1); 
Note: See TracChangeset for help on using the changeset viewer.