Changeset 4873:98d17d4deeec in roaraudio for libroar/basic.c
- Timestamp:
- 04/26/11 11:03:46 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/basic.c
r4806 r4873 63 63 int workarounds_store; 64 64 65 roar_err no = ROAR_ERROR_UNKNOWN;65 roar_err_set(ROAR_ERROR_UNKNOWN); 66 66 67 67 if ( timeout != 0 ) { 68 roar_err no = ROAR_ERROR_INVAL;68 roar_err_set(ROAR_ERROR_INVAL); 69 69 return -1; 70 70 } … … 231 231 232 232 if ( fh == -1 ) 233 roar_err no = ROAR_ERROR_CONNREFUSED;233 roar_err_set(ROAR_ERROR_CONNREFUSED); 234 234 235 235 ROAR_DBG("roar_connect_raw(*) = %i", fh); … … 246 246 247 247 if ( con == NULL ) { 248 roar_err no = ROAR_ERROR_INVAL;249 return -1; 250 } 251 252 roar_err no = ROAR_ERROR_UNKNOWN;248 roar_err_set(ROAR_ERROR_FAULT); 249 return -1; 250 } 251 252 roar_err_set(ROAR_ERROR_UNKNOWN); 253 253 fh = roar_connect_raw2(server, flags, timeout); 254 254 … … 262 262 263 263 if ( con == NULL || fh == -1 ) { 264 roar_err no = ROAR_ERROR_INVAL;264 roar_err_set(ROAR_ERROR_INVAL); 265 265 return -1; 266 266 } … … 278 278 con->flags |= ROAR_CON_FLAGS_VIO; 279 279 280 roar_err no = ROAR_ERROR_NONE;280 roar_err_set(ROAR_ERROR_NONE); 281 281 return 0; 282 282 } … … 337 337 roar_connect_fh(con, -2); 338 338 339 roar_err no = ROAR_ERROR_NONE;339 roar_err_set(ROAR_ERROR_NONE); 340 340 341 341 return 0; … … 384 384 int max_len; 385 385 386 roar_err no = ROAR_ERROR_UNKNOWN;386 roar_err_set(ROAR_ERROR_UNKNOWN); 387 387 388 388 ROAR_DBG("roar_identify(*): try to identify myself...");
Note: See TracChangeset
for help on using the changeset viewer.