cleanup EINTR checking in tag.c

git-svn-id: https://svn.musicpd.org/mpd/trunk@1127 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-05-21 22:52:54 +00:00
parent 28e29a29e9
commit fbcb995a81

View File

@ -310,11 +310,10 @@ MpdTag * oggTagDup(char * utf8file) {
char * s1;
char * s2;
while(!(fp = fopen(rmp2amp(utf8ToFsCharset(utf8file)),"r"))
&& errno==EINTR);
fp = fopen(rmp2amp(utf8ToFsCharset(utf8file)),"r");
if(!fp) return NULL;
if(ov_open(fp,&vf,NULL,0)<0) {
while(fclose(fp) && errno==EINTR);
fclose(fp);
return NULL;
}