Another update from Larry:
[oweals/busybox.git] / tail.c
diff --git a/tail.c b/tail.c
index 778c2d18b87396f5553eb6ea9b476b3a0b4d1539..ff77bde77e69b0ea206d9bea8a270cd850dd72a6 100644 (file)
--- a/tail.c
+++ b/tail.c
@@ -21,7 +21,6 @@
  *
  */
 
-#include "busybox.h"
 
 #include <fcntl.h>
 #include <getopt.h>
@@ -29,6 +28,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <sys/types.h>
+#include "busybox.h"
 
 static const struct suffix_mult tail_suffixes[] = {
        { "b", 512 },
@@ -44,14 +44,14 @@ static char *tailbuf;
 static int taillen;
 static int newline;
 
-void tailbuf_append(char *buf, int len)
+static void tailbuf_append(char *buf, int len)
 {
        tailbuf = xrealloc(tailbuf, taillen + len);
        memcpy(tailbuf + taillen, buf, len);
        taillen += len;
 }
 
-void tailbuf_trunc()
+static void tailbuf_trunc()
 {
        char *s;
        s = memchr(tailbuf, '\n', taillen);