ls: heed compiler warning

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2015-02-23 15:25:58 +01:00
parent a88db5c1a9
commit c5beaa08eb

View File

@ -566,7 +566,7 @@ static NOINLINE unsigned display_single(const struct dnode *dn)
#if ENABLE_FEATURE_LS_TIMESTAMPS #if ENABLE_FEATURE_LS_TIMESTAMPS
if (G.all_fmt & (LIST_FULLTIME|LIST_DATE_TIME)) { if (G.all_fmt & (LIST_FULLTIME|LIST_DATE_TIME)) {
char *filetime; char *filetime;
time_t *ttime = &dn->dn_mtime; const time_t *ttime = &dn->dn_mtime;
if (G.all_fmt & TIME_ACCESS) if (G.all_fmt & TIME_ACCESS)
ttime = &dn->dn_atime; ttime = &dn->dn_atime;
if (G.all_fmt & TIME_CHANGE) if (G.all_fmt & TIME_CHANGE)