From 53fcdf5f743aa9b02972eec658e66f96d6a63386 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sat, 16 Nov 2024 16:51:31 +0100 Subject: Silence most -Wzero-as-null-pointer-constant diagnostics Replace 0 by NULL and {0} by {}. Omit a few cases that aren't so trivial to fix. Link: Link: Signed-off-by: Alejandro Colomar --- misc/getttyent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/getttyent.c') diff --git a/misc/getttyent.c b/misc/getttyent.c index 92d92b026f..0df7c28ce1 100644 --- a/misc/getttyent.c +++ b/misc/getttyent.c @@ -126,7 +126,7 @@ __getttyent (void) ; tty.ty_comment = p; if (*p == 0) - tty.ty_comment = 0; + tty.ty_comment = NULL; if ((p = strchr (p, '\n'))) *p = '\0'; return (&tty); -- cgit v1.2.3