Cast to (const time_t *) to fix compiler type warning.

This commit is contained in:
Brian Behlendorf 2010-05-21 15:06:25 -07:00
parent 0d2b12f8aa
commit 1573fc9932
1 changed files with 1 additions and 1 deletions

View File

@ -3783,7 +3783,7 @@ zpool_do_events_short(nvlist_t *nvl)
verify(nvlist_lookup_int64_array(nvl, FM_EREPORT_TIME, &tv, &n) == 0);
memset(str, ' ', 32);
(void) ctime_r(&tv[0], ctime_str);
(void) ctime_r((const time_t *)&tv[0], ctime_str);
(void) strncpy(str, ctime_str+4, 6); /* 'Jun 30' */
(void) strncpy(str+7, ctime_str+20, 4); /* '1993' */
(void) strncpy(str+12, ctime_str+11, 8); /* '21:49:08' */