diff options
Diffstat (limited to 'tail.c')
-rw-r--r-- | tail.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -44,14 +44,14 @@ static char *tailbuf; | |||
44 | static int taillen; | 44 | static int taillen; |
45 | static int newline; | 45 | static int newline; |
46 | 46 | ||
47 | void tailbuf_append(char *buf, int len) | 47 | static 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 | ||
54 | void tailbuf_trunc() | 54 | static void tailbuf_trunc() |
55 | { | 55 | { |
56 | char *s; | 56 | char *s; |
57 | s = memchr(tailbuf, '\n', taillen); | 57 | s = memchr(tailbuf, '\n', taillen); |