#include "busybox.h"
-#include <sys/types.h>
#include <fcntl.h>
+#include <getopt.h>
+#include <string.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <sys/types.h>
-static struct suffix_mult tail_suffixes[] = {
+static const struct suffix_mult tail_suffixes[] = {
{ "b", 512 },
{ "k", 1024 },
{ "m", 1048576 },
};
#ifndef BB_FEATURE_SIMPLE_TAIL
-static struct suffix_mult null_suffixes[] = {
+static const struct suffix_mult null_suffixes[] = {
{ NULL, 0 }
};
#endif
-#define BYTES 0
-#define LINES 1
+static const int BYTES = 0;
+static const int LINES = 1;
static char *tailbuf;
static int taillen;