No inline declarations please.
This commit is contained in:
parent
41f70a1cff
commit
d3c7b6fb73
4
st.c
4
st.c
|
@ -558,10 +558,10 @@ static int frclen = 0;
|
||||||
ssize_t
|
ssize_t
|
||||||
xwrite(int fd, const char *s, size_t len)
|
xwrite(int fd, const char *s, size_t len)
|
||||||
{
|
{
|
||||||
size_t aux = len;
|
size_t aux = len, r;
|
||||||
|
|
||||||
while (len > 0) {
|
while (len > 0) {
|
||||||
ssize_t r = write(fd, s, len);
|
r = write(fd, s, len);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
len -= r;
|
len -= r;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user