Changeset 5364:0de291943ccf in roaraudio for libroar


Ignore:
Timestamp:
12/19/11 18:23:16 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

marked good casts and added const keywords

Location:
libroar
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libroar/hash.c

    r5357 r5364  
    276276    switch (digestlen) { 
    277277     case 1: 
    278        tmp.llsi = *(char*)digest; 
     278       tmp.llsi = *(_LIBROAR_GOOD_CAST char*)digest; 
    279279      break; 
    280280     case 2: 
  • libroar/socket.c

    r5326 r5364  
    405405 
    406406 
    407 int roar_socket_listen_decnet (char * object, int num) { 
     407int roar_socket_listen_decnet (const char * object, int num) { 
    408408#ifdef ROAR_HAVE_LIBDNET 
    409409 int fh = roar_socket_new(ROAR_SOCKET_TYPE_DECNET); 
     
    855855  snprintf(fhstr, 7, "%i", socks[1]); 
    856856 
    857   execlp(daemonimage, daemonimage, "--no-listen", "--client-fh", fhstr, (char*)NULL); 
     857  execlp(daemonimage, daemonimage, "--no-listen", "--client-fh", fhstr, (_LIBROAR_GOOD_CAST char*)NULL); 
    858858 
    859859  // we are still alive? 
     
    12231223  dup2(socks[1], 1); 
    12241224 
    1225   execlp("sh", "sh", "-c", cmd, (char*)NULL); 
     1225  execlp("sh", "sh", "-c", cmd, (_LIBROAR_GOOD_CAST char*)NULL); 
    12261226 
    12271227  // we are still alive? 
  • libroar/vio_cmd.c

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