diff options
author | Eric Blake <ebb9@byu.net> | 2008-06-16 21:16:07 -0600 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-06-17 08:17:14 +0200 |
commit | a7a328af0f7d087d8c664e7803a9f3a7479376c1 (patch) | |
tree | ac12bbb96c1d1da9e5de49b315c4411e01ed4746 /src/ls.c | |
parent | 94cecb5cf6922130f10a640614fb2e16945c5432 (diff) | |
download | coreutils-a7a328af0f7d087d8c664e7803a9f3a7479376c1.tar.xz |
ls, od: avoid redundant const
* src/ls.c (long_time_format, sort_functions): Avoid redundant const.
* src/od.c (charname): Likewise.
* maint.mk (sc_redundant_const): Add rule to detect this.
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -672,7 +672,7 @@ enum { TIME_STAMP_LEN_MAXIMUM = MAX (1000, INT_STRLEN_BOUND (time_t)) }; /* strftime formats for non-recent and recent files, respectively, in -l output. */ -static const char const *long_time_format[2] = +static char const *long_time_format[2] = { /* strftime format for non-recent files (older than 6 months), in -l output. This should contain the year, month and day (at @@ -3151,7 +3151,7 @@ static int rev_xstrcoll_df_version (V a, V b) } \ } -static const qsortFunc const sort_functions[][2][2][2] = +static qsortFunc const sort_functions[][2][2][2] = { LIST_SORTFUNCTION_VARIANTS (name), LIST_SORTFUNCTION_VARIANTS (extension), |