[hackers] [st] No inline declarations please. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Fri, 10 Jul 2015 14:32:07 +0200 (CEST)

commit d3c7b6fb73bc5273b56c84c6c4c50a61ee5ab2bc
Author: Christoph Lohmann <20h_AT_r-36.net>
AuthorDate: Fri Jul 10 14:19:31 2015 +0200
Commit: Christoph Lohmann <20h_AT_r-36.net>
CommitDate: Fri Jul 10 14:19:31 2015 +0200

    No inline declarations please.

diff --git a/st.c b/st.c
index 486735d..8f28582 100644
--- a/st.c
+++ b/st.c
_AT_@ -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;
Received on Fri Jul 10 2015 - 14:32:07 CEST

This archive was generated by hypermail 2.3.0 : Fri Jul 10 2015 - 14:36:17 CEST