Changeset 3875:8731d0c3e04a in roaraudio for libroaresd


Ignore:
Timestamp:
05/21/10 10:50:48 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

init/zero messages with memset()

Location:
libroaresd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libroaresd/esdbasic.c

    r3811 r3875  
    8181/* if your stream is at 22.05 Khz it'll be double this - in mono   */ 
    8282/* double again ... etc.                                           */ 
     83 
     84// TODO: FIXME: write something usefull here. 
    8385int esd_get_latency(int esd) { 
    8486#ifdef ROAR_HAVE_GETTIMEOFDAY 
     
    8688 struct roar_message    m; 
    8789 struct roar_connection con; 
     90 
     91 memset(&m, 0, sizeof(m)); 
    8892 
    8993 m.cmd = ROAR_CMD_NOOP; 
  • libroaresd/esdctl.c

    r3811 r3875  
    150150 
    151151 roar_connect_fh(&con, esd); 
     152 
     153 memset(&m, 0, sizeof(m)); 
     154 
    152155 m.cmd     = ROAR_CMD_SERVER_OINFO; 
    153156 m.datalen = 0; 
Note: See TracChangeset for help on using the changeset viewer.