mirror of
https://https.git.savannah.gnu.org/git/coreutils.git
synced 2026-01-26 07:27:53 +00:00
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:
parent
23e696b0b2
commit
289278eee2
@ -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 (_(" ??:???? "));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user