Changeset 4873:98d17d4deeec in roaraudio for libroar/basic.c


Ignore:
Timestamp:
04/26/11 11:03:46 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

make use of new error stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/basic.c

    r4806 r4873  
    6363 int workarounds_store; 
    6464 
    65  roar_errno = ROAR_ERROR_UNKNOWN; 
     65 roar_err_set(ROAR_ERROR_UNKNOWN); 
    6666 
    6767 if ( timeout != 0 ) { 
    68   roar_errno = ROAR_ERROR_INVAL; 
     68  roar_err_set(ROAR_ERROR_INVAL); 
    6969  return -1; 
    7070 } 
     
    231231 
    232232 if ( fh == -1 ) 
    233   roar_errno = ROAR_ERROR_CONNREFUSED; 
     233  roar_err_set(ROAR_ERROR_CONNREFUSED); 
    234234 
    235235 ROAR_DBG("roar_connect_raw(*) = %i", fh); 
     
    246246 
    247247 if ( con == NULL ) { 
    248   roar_errno = ROAR_ERROR_INVAL; 
    249   return -1; 
    250  } 
    251  
    252  roar_errno = ROAR_ERROR_UNKNOWN; 
     248  roar_err_set(ROAR_ERROR_FAULT); 
     249  return -1; 
     250 } 
     251 
     252 roar_err_set(ROAR_ERROR_UNKNOWN); 
    253253 fh = roar_connect_raw2(server, flags, timeout); 
    254254 
     
    262262 
    263263 if ( con == NULL || fh == -1 ) { 
    264   roar_errno = ROAR_ERROR_INVAL; 
     264  roar_err_set(ROAR_ERROR_INVAL); 
    265265  return -1; 
    266266 } 
     
    278278  con->flags |= ROAR_CON_FLAGS_VIO; 
    279279 
    280  roar_errno = ROAR_ERROR_NONE; 
     280 roar_err_set(ROAR_ERROR_NONE); 
    281281 return 0; 
    282282} 
     
    337337 roar_connect_fh(con, -2); 
    338338 
    339  roar_errno = ROAR_ERROR_NONE; 
     339 roar_err_set(ROAR_ERROR_NONE); 
    340340 
    341341 return 0; 
     
    384384 int max_len; 
    385385 
    386  roar_errno = ROAR_ERROR_UNKNOWN; 
     386 roar_err_set(ROAR_ERROR_UNKNOWN); 
    387387 
    388388 ROAR_DBG("roar_identify(*): try to identify myself..."); 
Note: See TracChangeset for help on using the changeset viewer.