Changeset 5257:27194d561c16 in roaraudio for roard/roard.c


Ignore:
Timestamp:
11/13/11 22:53:53 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed most warnings in roard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r5255 r5257  
    471471 
    472472 if ( pidfile != NULL ) { 
    473   if ( roar_vio_open_file(&fh, pidfile, O_RDONLY, 0644) == -1 ) { 
     473  if ( roar_vio_open_dstr_simple(&fh, pidfile, O_RDONLY) ) { 
    474474   ROAR_WARN("restart_server(*): Can not read pidfile: %s", pidfile); 
    475475  } else { 
     
    25192519#ifdef SUPPORT_PIDFILE 
    25202520 if ( pidfile != NULL ) { 
    2521   if ( roar_vio_open_file(&pidfile_vio, pidfile, O_WRONLY|O_CREAT, 0644) == -1 ) { 
     2521  if ( roar_vio_open_dstr_simple(&pidfile_vio, pidfile, O_WRONLY|O_CREAT) == -1 ) { 
    25222522   ROAR_ERR("Can not write pidfile: %s", pidfile); 
    25232523  } else { 
Note: See TracChangeset for help on using the changeset viewer.