Index | Thread | Search

From:
Jan Klemkow <jan@openbsd.org>
Subject:
ober_read_elements(3): returns NULL not -1
To:
tech@openbsd.org
Date:
Tue, 30 Jun 2026 09:54:44 +0200

Download raw body.

Thread
Hi,

ober_read_elements(3) returns a NULL pointer on error, not -1.

ok?

bye,
jan

Index: ober_read_elements.3
===================================================================
RCS file: /cvs/src/lib/libutil/ober_read_elements.3,v
diff -u -p -r1.5 ober_read_elements.3
--- ober_read_elements.3	13 Jun 2025 18:34:00 -0000	1.5
+++ ober_read_elements.3	30 Jun 2026 07:42:50 -0000
@@ -144,7 +144,9 @@ frees any dynamically allocated storage 
 returns a pointer to a fully populated list of one or more
 .Vt ber_element
 structures.
-Otherwise \-1 is returned and the global variable
+Otherwise
+.Dv NULL
+is returned and the global variable
 .Va errno
 is set to indicate the error.
 .Pp