Changeset 4007:fcdcc803bc06 in roaraudio
- Timestamp:
- 07/01/10 15:05:45 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroaross/libroaross.c
r3953 r4007 533 533 534 534 static struct devices * _get_device (const char * pathname) { 535 struct devices * ptr;536 535 size_t len; 537 536 int i; 537 538 ROAR_DBG("_get_device(pathname='%s') = ?", pathname); 538 539 539 540 for (i = 0; _device_list[i].prefix != NULL; i++) { … … 546 547 } 547 548 if ( !strncmp(pathname, _device_list[i].prefix, len) ) { 548 ptr = &(_device_list[i]); 549 } 550 } 551 549 return &(_device_list[i]); 550 } 551 } 552 553 ROAR_DBG("_get_device(pathname='%s') = NULL", pathname); 552 554 return NULL; 553 555 } … … 584 586 } 585 587 588 ROAR_DBG("_open_file(pathname='%s', flags=0x%x) = ?", pathname, flags); 589 586 590 if ( (ptr = _get_device(pathname)) == NULL ) 587 591 return -2; 592 593 ROAR_DBG("_open_file(pathname='%s', flags=0x%x) = ?", pathname, flags); 588 594 589 595 if ( ptr->type == HT_STATIC || ptr->type == HT_VIO ) { // non-session handles
Note: See TracChangeset
for help on using the changeset viewer.