ls: heed compiler warning
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 23 Feb 2015 14:25:58 +0000 (15:25 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 23 Feb 2015 14:25:58 +0000 (15:25 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/ls.c

index 366758351511120be04069813aad85c9d817a0e6..14c8beaffa6f043069170006b431e42c7d1c8d27 100644 (file)
@@ -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)