Index | Thread | Search

From:
Claudio Jeker <cjeker@diehard.n-r-g.com>
Subject:
Re: ober_read_elements(3): returns NULL not -1
To:
Jan Klemkow <jan@openbsd.org>
Cc:
tech@openbsd.org
Date:
Tue, 30 Jun 2026 10:11:58 +0200

Download raw body.

Thread
On Tue, Jun 30, 2026 at 09:54:44AM +0200, Jan Klemkow wrote:
> Hi,
> 
> ober_read_elements(3) returns a NULL pointer on error, not -1.
> 
> ok?

OK claudio@
 
> 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
> 

-- 
:wq Claudio