Changeset 4739:605b086a1801 in roaraudio


Ignore:
Timestamp:
01/31/11 01:10:16 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

some work to avoid compiler warnings

Location:
roard
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • roard/auth.c

    r4708 r4739  
    200200 size_t i; 
    201201 va_list va; 
    202  pid_t pid; 
    203  uid_t uid; 
    204  gid_t gid; 
     202 pid_t pid = -1; 
     203 uid_t uid = -1; 
     204 gid_t gid = -1; 
    205205 int err = 0; 
    206206 
  • roard/emul_rsound.c

    r4708 r4739  
    8282  buf.i[3] = ROAR_HOST2NET32(0); 
    8383 
    84   ROAR_NETWORK_WRITE(oldfh, buf.c, sizeof(buf.c)); 
     84  if ( ROAR_NETWORK_WRITE(oldfh, buf.c, sizeof(buf.c)) != sizeof(buf.c) ) { 
     85   clients_delete(client); 
     86   return -1; 
     87  } 
    8588 
    8689  return client; 
  • roard/roard.c

    r4722 r4739  
    25042504 
    25052505#ifdef ROAR_HAVE_NICE 
     2506  // this stupid error check is because type of returned data of nice() changed 
     2507  // too often. On some systems it may return 0/-1, on some new nice value or 
     2508  // mixed forms of both. 
    25062509  errno = 0; 
    2507   nice(-5*realtime); // -5 for each --realtime 
     2510  (void)nice(-5*realtime); // -5 for each --realtime 
    25082511  if ( errno ) { 
    25092512   ROAR_WARN("Can not decrease nice value by %i: %s", 5*realtime, strerror(errno)); 
Note: See TracChangeset for help on using the changeset viewer.