tytools - fix ty_write to return lenght written and not 0 on success

the change to ty_write from write broke a bunch of tytools... this
fixes that. fix change broke it:

0eb8948d67
This commit is contained in:
Carsten Haitzler 2020-01-07 10:48:08 +00:00
parent bbf556f9b0
commit 53a484bc48
1 changed files with 1 additions and 1 deletions

View File

@ -36,5 +36,5 @@ ty_write(int fd, const void *buf, size_t count)
data += res;
len -= res;
}
return len;
return count;
}