This fixes 5 potential bugs where the conditional would always be true.

git-svn-id: https://svn.musicpd.org/mpd/trunk@4659 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Avuton Olrich
2006-08-20 03:11:12 +00:00
parent 54a1a9f2b6
commit aa487e6c75
4 changed files with 5 additions and 5 deletions

View File

@@ -36,7 +36,7 @@
static void blockingWrite(const int fd, const char *string, size_t len)
{
while (len) {
size_t ret = xwrite(fd, string, len);
ssize_t ret = xwrite(fd, string, len);
if (ret == len)
return;
if (ret >= 0) {