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.zip
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;
558ssize_t 558ssize_t
559xwrite(int fd, const char *s, size_t len) 559xwrite(int fd, const char *s, size_t len)
560{ 560{
561 size_t aux = len; 561 size_t aux = len, r;
562 562
563 while (len > 0) { 563 while (len > 0) {
564 ssize_t r = write(fd, s, len); 564 r = write(fd, s, len);
565 if (r < 0) 565 if (r < 0)
566 return r; 566 return r;
567 len -= r; 567 len -= r;