Changeset 5109:4f9fc788fe91 in roaraudio for roarclients/roarmon.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/roarmon.c

    r4885 r5109  
    198198 } 
    199199 
    200  if ( roar_stream_connect(&con, &s, dir) == -1 ) { 
     200 if ( roar_stream_connect2(&con, &s, dir, -1) == -1 ) { 
    201201  fprintf(stderr, "Error: can not connect stream to server\n"); 
    202202  roar_disconnect(&con); 
     
    227227// ROAR_SHUTDOWN(fh, SHUT_WR); // we need to have something do do shutdowns here... 
    228228 
    229  roar_vio_copy_data(&file, stream); 
     229 if ( roar_vio_copy_data(&file, stream) == -1 ) { 
     230  fprintf(stderr, "Error: can not copy data from stream to destination\n"); 
     231  roar_vio_close(stream); 
     232  roar_vio_close(&file); 
     233  return 14; 
     234 } 
    230235 
    231236 roar_vio_close(stream); 
Note: See TracChangeset for help on using the changeset viewer.