summaryrefslogtreecommitdiff
path: root/libbb/xreadlink.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
committerEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
commitc7bda1ce659294d6e22c06e087f6f265983c7578 (patch)
tree4c6d2217f4d8306c59cf1096f8664e1cfd167213 /libbb/xreadlink.c
parent8854004b41065b3d081af7f3df13a100b0c8bfbe (diff)
downloadbusybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz
busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.bz2
busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.zip
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'libbb/xreadlink.c')
-rw-r--r--libbb/xreadlink.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/xreadlink.c b/libbb/xreadlink.c
index b8cfe617a..21a657dfc 100644
--- a/libbb/xreadlink.c
+++ b/libbb/xreadlink.c
@@ -14,10 +14,10 @@
14#include "libbb.h" 14#include "libbb.h"
15 15
16extern char *xreadlink(const char *path) 16extern char *xreadlink(const char *path)
17{ 17{
18 static const int GROWBY = 80; /* how large we will grow strings by */ 18 static const int GROWBY = 80; /* how large we will grow strings by */
19 19
20 char *buf = NULL; 20 char *buf = NULL;
21 int bufsize = 0, readsize = 0; 21 int bufsize = 0, readsize = 0;
22 22
23 do { 23 do {
@@ -27,10 +27,10 @@ extern char *xreadlink(const char *path)
27 bb_perror_msg("%s", path); 27 bb_perror_msg("%s", path);
28 return NULL; 28 return NULL;
29 } 29 }
30 } 30 }
31 while (bufsize < readsize + 1); 31 while (bufsize < readsize + 1);
32 32
33 buf[readsize] = '\0'; 33 buf[readsize] = '\0';
34 34
35 return buf; 35 return buf;
36} 36}