mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Drop errno dependency in database_cue_get_token - was some legacy
code that is probably not needed
This commit is contained in:
parent
93babdd6f7
commit
39241699a0
@ -15,7 +15,6 @@
|
|||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <errno.h>
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
@ -143,18 +142,6 @@ static int64_t task_database_cue_get_token(intfstream_t *fd, char *token, uint64
|
|||||||
if (rv == 0)
|
if (rv == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (rv < 1)
|
|
||||||
{
|
|
||||||
switch (errno)
|
|
||||||
{
|
|
||||||
case EINTR:
|
|
||||||
case EAGAIN:
|
|
||||||
continue;
|
|
||||||
default:
|
|
||||||
return -errno;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (*c)
|
switch (*c)
|
||||||
{
|
{
|
||||||
case ' ':
|
case ' ':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user