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:
parent
72e06e05a1
commit
e4ef4ea6aa
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue