summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorDenys Vlasenko2015-02-23 15:25:58 +0100
committerDenys Vlasenko2015-02-23 15:25:58 +0100
commitc5beaa08eb57c542768eebfdf6532e72c5c0c16b (patch)
tree50683d9afee1011f2395f00129ba4672c0f1f623 /coreutils
parenta88db5c1a99ebc0ae23b5d108113d9b8af7afc3c (diff)
downloadbusybox-c5beaa08eb57c542768eebfdf6532e72c5c0c16b.zip
busybox-c5beaa08eb57c542768eebfdf6532e72c5c0c16b.tar.gz
ls: heed compiler warning
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 3667583..14c8bea 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -566,7 +566,7 @@ static NOINLINE unsigned display_single(const struct dnode *dn)
#if ENABLE_FEATURE_LS_TIMESTAMPS
if (G.all_fmt & (LIST_FULLTIME|LIST_DATE_TIME)) {
char *filetime;
- time_t *ttime = &dn->dn_mtime;
+ const time_t *ttime = &dn->dn_mtime;
if (G.all_fmt & TIME_ACCESS)
ttime = &dn->dn_atime;
if (G.all_fmt & TIME_CHANGE)