From 3e8568980d2ccfdb65ea3dcb92e858a2dd160129 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 1 Mar 2006 01:07:56 +0000 Subject: Remove all references to errno, it's unnecessary since the codec doesn't directly access files. Should really fix the TLS issues with errno this time... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8873 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/Tremor/vorbisfile.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'apps/codecs/Tremor/vorbisfile.c') diff --git a/apps/codecs/Tremor/vorbisfile.c b/apps/codecs/Tremor/vorbisfile.c index 54e36d29af..4d36ab3b48 100644 --- a/apps/codecs/Tremor/vorbisfile.c +++ b/apps/codecs/Tremor/vorbisfile.c @@ -61,12 +61,10 @@ /* read a little more data from the file/pipe into the ogg_sync framer */ static long _get_data(OggVorbis_File *vf){ - errno=0; if(vf->datasource){ char *buffer=(char *)ogg_sync_bufferin(vf->oy,CHUNKSIZE); long bytes=(vf->callbacks.read_func)(buffer,1,CHUNKSIZE,vf->datasource); if(bytes>0)ogg_sync_wrote(vf->oy,bytes); - if(bytes==0 && errno)return(-1); return(bytes); }else return(0); -- cgit v1.2.3