Changeset 4876:06a2f29d0450 in roaraudio for libroar/error.c


Ignore:
Timestamp:
04/26/11 12:06:37 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

some updates to handle error values better with DSTR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/error.c

    r4871 r4876  
    125125void   roar_err_update(void) { 
    126126 int * err = roar_errno2(); 
     127 
     128 // NOTE: _NEVER_ call ROAR_{DBG,INFO,WARN,ERRO}() in here! (will result in endless loop) 
     129 //printf("*err=%i, errno=%i\n", *err, (int)errno); 
     130 
    127131 if ( *err != ROAR_ERROR_NONE ) { 
    128132  roar_err_to_errno(); 
     
    144148 
    145149 switch (errno) { 
     150#ifdef EACCES 
     151  case EACCES:       _roar_errno = ROAR_ERROR_PERM; break; 
     152#endif 
    146153#ifdef EPERM 
    147154  case EPERM:        _roar_errno = ROAR_ERROR_PERM; break; 
Note: See TracChangeset for help on using the changeset viewer.