Changeset 4045:24979f240e9c in roaraudio


Ignore:
Timestamp:
07/09/10 14:40:54 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

don't use legacy function roar_get_connection_vio()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarmon.c

    r3812 r4045  
    6565 struct roar_connection    con; 
    6666 struct roar_stream        s; 
    67  struct roar_vio_calls     file, stream; 
     67 struct roar_vio_calls     file, * stream; 
    6868 struct roar_vio_defaults  def; 
    6969 int file_opened = 0; 
     
    214214 } 
    215215 
    216  if ( roar_get_connection_vio(&con, &stream) == -1 ) { 
     216 if ( (stream = roar_get_connection_vio2(&con)) == NULL ) { 
    217217  fprintf(stderr, "Error: can not get stream vio\n"); 
    218218  roar_disconnect(&con); 
     
    223223// ROAR_SHUTDOWN(fh, SHUT_WR); // we need to have something do do shutdowns here... 
    224224 
    225  roar_vio_copy_data(&file, &stream); 
    226  
    227  roar_vio_close(&stream); 
     225 roar_vio_copy_data(&file, stream); 
     226 
     227 roar_vio_close(stream); 
    228228 roar_vio_close(&file); 
    229229 
Note: See TracChangeset for help on using the changeset viewer.