From 289278eee208d4b1a08cf777b1f2a5e48d0aeed8 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Fri, 16 Jan 2026 22:56:15 -0800 Subject: [PATCH] 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. --- src/uptime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uptime.c b/src/uptime.c index 4e07f1cb8..37d3206f9 100644 --- a/src/uptime.c +++ b/src/uptime.c @@ -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 (_(" ??:???? "));