aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2015-07-10 14:19:31 +0200
committerChristoph Lohmann <20h@r-36.net>2015-07-10 14:19:31 +0200
commitd3c7b6fb73bc5273b56c84c6c4c50a61ee5ab2bc (patch)
tree06f4d91cf9d8534cafb0fed3c361be56f5b91d89 /st.c
parent41f70a1cff9c5653bebea996728fa76e2507eca3 (diff)
downloadst-d3c7b6fb73bc5273b56c84c6c4c50a61ee5ab2bc.tar.gz
st-d3c7b6fb73bc5273b56c84c6c4c50a61ee5ab2bc.tar.bz2
No inline declarations please.
Diffstat (limited to 'st.c')
-rw-r--r--st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/st.c b/st.c
index 486735d..8f28582 100644
--- a/st.c
+++ b/st.c
@@ -558,10 +558,10 @@ static int frclen = 0;
ssize_t
xwrite(int fd, const char *s, size_t len)
{
- size_t aux = len;
+ size_t aux = len, r;
while (len > 0) {
- ssize_t r = write(fd, s, len);
+ r = write(fd, s, len);
if (r < 0)
return r;
len -= r;