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:
Andrew Borodin 2016-12-19 13:26:41 +03:00
parent 403b43c05f
commit 455316be9f
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}