Changeset 5109:4f9fc788fe91 in roaraudio for roarclients/roarcat.c


Ignore:
Timestamp:
07/28/11 16:32:34 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Started to use compiler attributes (Also see: #130)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarcat.c

    r5021 r5109  
    187187 } 
    188188 
    189  if ( roar_stream_connect(&con, &s, dir) == -1 ) { 
     189 if ( roar_stream_connect2(&con, &s, dir, -1) == -1 ) { 
    190190  fprintf(stderr, "Error: can not connect stream to server\n"); 
    191191  roar_disconnect(&con); 
     
    205205 } 
    206206 
    207  roar_vio_copy_data(stream, &file); 
     207 if ( roar_vio_copy_data(stream, &file) == -1 ) { 
     208  fprintf(stderr, "Error: can not copy data from source to server.\n"); 
     209  roar_vio_close(stream); 
     210  roar_vio_close(&file); 
     211  return 14; 
     212 } 
    208213 
    209214 roar_vio_close(stream); 
Note: See TracChangeset for help on using the changeset viewer.