summaryrefslogtreecommitdiff
path: root/coreutils/tail.c
diff options
context:
space:
mode:
authorMatt Kraai2001-02-05 17:50:03 +0000
committerMatt Kraai2001-02-05 17:50:03 +0000
commita164c647acc613fe199a646dc5075c097f51a4a4 (patch)
treebf64d8b5c0592b0276d5c1c5471df27e7c88607b /coreutils/tail.c
parent925edb828df9665714d2ce71a6ef8242bbf4eb15 (diff)
downloadbusybox-a164c647acc613fe199a646dc5075c097f51a4a4.zip
busybox-a164c647acc613fe199a646dc5075c097f51a4a4.tar.gz
Make suffix_mult structures const. Thanks to Vladimir N. Oleynik.
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 40511aa..d45b29c 100644
--- a/coreutils/tail.c
+++ b/coreutils/tail.c
@@ -30,7 +30,7 @@
#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 },
@@ -38,7 +38,7 @@ static struct suffix_mult tail_suffixes[] = {
};
#ifndef BB_FEATURE_SIMPLE_TAIL
-static struct suffix_mult null_suffixes[] = {
+static const struct suffix_mult null_suffixes[] = {
{ NULL, 0 }
};
#endif