tNo inline declarations please. - st - [fork] customized build of st, the simpl… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit d3c7b6fb73bc5273b56c84c6c4c50a61ee5ab2bc | |
parent 41f70a1cff9c5653bebea996728fa76e2507eca3 | |
Author: Christoph Lohmann <[email protected]> | |
Date: Fri, 10 Jul 2015 14:19:31 +0200 | |
No inline declarations please. | |
Diffstat: | |
M st.c | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -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; |