maint: pacify another gcc -Wzero-as-null-pointer-constant warning

* src/uptime.c (print_uptime): Add a timezone_t cast to zero. Don't use
nullptr since timezone_t is not a standardized and may be defined to
something other than a pointer.
This commit is contained in:
Collin Funk 2026-01-16 22:56:15 -08:00
parent 23e696b0b2
commit 289278eee2

View File

@ -66,7 +66,7 @@ print_uptime (idx_t n, STRUCT_UTMP const *utmp_buf)
previous versions of coreutils don't. */
if (tmn)
/* TRANSLATORS: This prints the current clock time. */
fprintftime (stdout, _(" %H:%M:%S "), tmn, 0, 0);
fprintftime (stdout, _(" %H:%M:%S "), tmn, (timezone_t) 0, 0);
else
{
printf (_(" ??:???? "));