aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/ls.c2
-rw-r--r--coreutils/stat.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index d8d814a74..5042c1298 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -170,7 +170,7 @@ static int show_color = 0;
170 170
171/* long option entry used only for --color, which has no short option 171/* long option entry used only for --color, which has no short option
172 * equivalent. */ 172 * equivalent. */
173static struct option ls_color_opt[] = 173static const struct option ls_color_opt[] =
174{ 174{
175 {"color", optional_argument, NULL, 1}, 175 {"color", optional_argument, NULL, 1},
176 {NULL, 0, NULL, 0} 176 {NULL, 0, NULL, 0}
diff --git a/coreutils/stat.c b/coreutils/stat.c
index 138cc9e8b..c17b4d5e8 100644
--- a/coreutils/stat.c
+++ b/coreutils/stat.c
@@ -81,9 +81,9 @@ static char const *human_time(time_t t)
81static char const *human_fstype(long f_type) 81static char const *human_fstype(long f_type)
82{ 82{
83 int i; 83 int i;
84 static struct types { 84 static const struct types {
85 long type; 85 long type;
86 char *fs; 86 const char *fs;
87 } humantypes[] = { 87 } humantypes[] = {
88 { 0xADFF, "affs" }, 88 { 0xADFF, "affs" },
89 { 0x1Cd1, "devpts" }, 89 { 0x1Cd1, "devpts" },