bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 14/23] man/curs_terminfo.3x: Respell null pointer constant.


From: G. Branden Robinson
Subject: [PATCH 14/23] man/curs_terminfo.3x: Respell null pointer constant.
Date: Thu, 26 Dec 2024 21:35:36 -0600

...as "NULL", not "0".  Compilers now warn about the latter usage.
---
 man/curs_terminfo.3x | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man/curs_terminfo.3x b/man/curs_terminfo.3x
index b2b5bbe8b..82bfc1fa0 100644
--- a/man/curs_terminfo.3x
+++ b/man/curs_terminfo.3x
@@ -301,7 +301,7 @@ .SS Initialization
 .RS
 .IP
 .EX
-setupterm((char *)0, 1, (int *)0);
+setupterm((char *) NULL, 1, (int *) NULL);
 .EE
 .RE
 .IP
@@ -592,7 +592,7 @@ .SS "Terminal Capability Functions"
 is not a string capability,
 or
 .TP
-.B 0
+.B NULL
 if it is canceled or absent from the terminal description.
 .\" ********************************************************************
 .SS "Terminal Capability Names"
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]