}
static char *
-human_time (time_t const *t, int t_ns)
+human_time (time_t t, int t_ns)
{
static char str[80];
- struct tm *tm = localtime (t);
+ struct tm *tm = localtime (&t);
if (tm == NULL)
{
G_fail = 1;
break;
case 'x':
strcat (pformat, "s");
- printf (pformat, human_time (&(statbuf->st_atime),
+ printf (pformat, human_time (statbuf->st_atime,
TIMESPEC_NS (statbuf->st_atim)));
break;
case 'X':
break;
case 'y':
strcat (pformat, "s");
- printf (pformat, human_time (&(statbuf->st_mtime),
+ printf (pformat, human_time (statbuf->st_mtime,
TIMESPEC_NS (statbuf->st_mtim)));
break;
case 'Y':
break;
case 'z':
strcat (pformat, "s");
- printf (pformat, human_time (&(statbuf->st_ctime),
+ printf (pformat, human_time (statbuf->st_ctime,
TIMESPEC_NS (statbuf->st_ctim)));
break;
case 'Z':