mirror of https://github.com/MidnightCommander/mc
tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c: fix warning:
tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c: In function 'string_date': tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c:193:21: warning: declaration of 'time' shadows a global declaration [-Wshadow] Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
403b43c05f
commit
455316be9f
|
@ -190,7 +190,7 @@ chomp (char *s)
|
|||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
static const char *
|
||||
string_date (time_t time)
|
||||
string_date (time_t t)
|
||||
{
|
||||
static char buf[BUF_SMALL];
|
||||
|
||||
|
@ -200,7 +200,7 @@ string_date (time_t time)
|
|||
* YYYY-MM-DD because vfs_parse_ls_lga() doesn't currently recognize
|
||||
* the latter.
|
||||
*/
|
||||
FMT_LOCALTIME (buf, sizeof buf, "%Y-%m-%d %H:%M:%S", time);
|
||||
FMT_LOCALTIME (buf, sizeof buf, "%Y-%m-%d %H:%M:%S", t);
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue