rename all st_mtime variables to avoid conflict with #define.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8087 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -177,10 +177,10 @@ make_fileinfo(const char *filename, struct fileinfo *file, int flags)
|
||||
|
||||
{
|
||||
time_t t = time(NULL);
|
||||
time_t st_mtime = st->st_mtime;
|
||||
struct tm *tm = localtime(&st_mtime);
|
||||
if((t - st_mtime > 6*30*24*60*60) ||
|
||||
(st_mtime - t > 6*30*24*60*60))
|
||||
time_t mtime = st->st_mtime;
|
||||
struct tm *tm = localtime(&mtime);
|
||||
if((t - mtime > 6*30*24*60*60) ||
|
||||
(mtime - t > 6*30*24*60*60))
|
||||
strftime(buf, sizeof(buf), "%b %e %Y", tm);
|
||||
else
|
||||
strftime(buf, sizeof(buf), "%b %e %H:%M", tm);
|
||||
|
Reference in New Issue
Block a user