Re: ober_read_elements(3): returns NULL not -1

Claudio Jeker <[email protected]>
Newsgroups gmane.os.openbsd.tech
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.