Changeset 4786:c31d7735a7e6 in roaraudio
- Timestamp:
- 03/11/11 02:52:29 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/authfile.c
r4708 r4786 50 50 struct roar_authfile * ret; 51 51 size_t magiclen = 0; 52 struct stat filestat; 53 54 if ( type == ROAR_AUTHFILE_TYPE_AUTO ) { 55 if ( stat(filename, &filestat) != 0 ) 56 return NULL; 57 58 if ( filestat.st_size == 16 ) { 59 type = ROAR_AUTHFILE_TYPE_ESD; 60 } else if ( filestat.st_size == 256 ) { 61 type = ROAR_AUTHFILE_TYPE_PULSE; 62 } else { 63 return NULL; 64 } 65 } 52 66 53 67 switch (type) {
Note: See TracChangeset
for help on using the changeset viewer.