make some code look neater

git-svn-id: https://svn.musicpd.org/mpd/trunk@738 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-04-13 19:55:00 +00:00
parent 72e06e05a1
commit e4ef4ea6aa
1 changed files with 3 additions and 3 deletions

View File

@ -76,11 +76,11 @@ void myfprintf(FILE * fp, char * format, ... ) {
}
else {
vsnprintf(buffer,BUFFER_LENGTH,format,arglist);
if((fcntlret & O_NONBLOCK) &&
interfacePrintWithFD(fd,buffer)==0)
if(!(fcntlret & O_NONBLOCK) ||
interfacePrintWithFD(fd,buffer)<0)
{
blockingWrite(fd,buffer);
}
else blockingWrite(fd,buffer);
}
va_end(arglist);