aboutsummaryrefslogtreecommitdiff
path: root/coreutils/tail.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-02-05 17:50:03 +0000
committerMatt Kraai <kraai@debian.org>2001-02-05 17:50:03 +0000
commita164c647acc613fe199a646dc5075c097f51a4a4 (patch)
treebf64d8b5c0592b0276d5c1c5471df27e7c88607b /coreutils/tail.c
parent925edb828df9665714d2ce71a6ef8242bbf4eb15 (diff)
downloadbusybox-w32-a164c647acc613fe199a646dc5075c097f51a4a4.tar.gz
busybox-w32-a164c647acc613fe199a646dc5075c097f51a4a4.tar.bz2
busybox-w32-a164c647acc613fe199a646dc5075c097f51a4a4.zip
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 40511aa7b..d45b29c4c 100644
--- a/coreutils/tail.c
+++ b/coreutils/tail.c
@@ -30,7 +30,7 @@
30#include <unistd.h> 30#include <unistd.h>
31#include <sys/types.h> 31#include <sys/types.h>
32 32
33static struct suffix_mult tail_suffixes[] = { 33static const struct suffix_mult tail_suffixes[] = {
34 { "b", 512 }, 34 { "b", 512 },
35 { "k", 1024 }, 35 { "k", 1024 },
36 { "m", 1048576 }, 36 { "m", 1048576 },
@@ -38,7 +38,7 @@ static struct suffix_mult tail_suffixes[] = {
38}; 38};
39 39
40#ifndef BB_FEATURE_SIMPLE_TAIL 40#ifndef BB_FEATURE_SIMPLE_TAIL
41static struct suffix_mult null_suffixes[] = { 41static const struct suffix_mult null_suffixes[] = {
42 { NULL, 0 } 42 { NULL, 0 }
43}; 43};
44#endif 44#endif