Browse Source

No inline declarations please.

Christoph Lohmann 9 years ago
parent
commit
d3c7b6fb73
1 changed files with 2 additions and 2 deletions
  1. 2 2
      st.c

+ 2 - 2
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;