aboutsummaryrefslogtreecommitdiff
path: root/coreutils/tail.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-03-09 21:24:12 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-03-09 21:24:12 +0000
commit1ac3737b2be159605be497acba46eb6ebc0de450 (patch)
treec9e6d3d695cbb2449132428a32fb6c309aad870f /coreutils/tail.c
parent1f5b759db15ea574fdb31e86b8916835dbd43dbe (diff)
downloadbusybox-w32-1ac3737b2be159605be497acba46eb6ebc0de450.tar.gz
busybox-w32-1ac3737b2be159605be497acba46eb6ebc0de450.tar.bz2
busybox-w32-1ac3737b2be159605be497acba46eb6ebc0de450.zip
A cleanup patch from Jeff Garzik to static-ify a number of
namespace polluting things that really should be static. git-svn-id: svn://busybox.net/trunk/busybox@2027 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/tail.c')
-rw-r--r--coreutils/tail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/tail.c b/coreutils/tail.c
index a85256c80..ff77bde77 100644
--- a/coreutils/tail.c
+++ b/coreutils/tail.c
@@ -44,14 +44,14 @@ static char *tailbuf;
44static int taillen; 44static int taillen;
45static int newline; 45static int newline;
46 46
47void tailbuf_append(char *buf, int len) 47static void tailbuf_append(char *buf, int len)
48{ 48{
49 tailbuf = xrealloc(tailbuf, taillen + len); 49 tailbuf = xrealloc(tailbuf, taillen + len);
50 memcpy(tailbuf + taillen, buf, len); 50 memcpy(tailbuf + taillen, buf, len);
51 taillen += len; 51 taillen += len;
52} 52}
53 53
54void tailbuf_trunc() 54static void tailbuf_trunc()
55{ 55{
56 char *s; 56 char *s;
57 s = memchr(tailbuf, '\n', taillen); 57 s = memchr(tailbuf, '\n', taillen);