[PATCH] manual: check the correct variable in SIOCATMARK example [BZ #33093]

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Mon Oct 6 12:57:46 GMT 2025



On 04/10/25 04:52, Collin Funk wrote:
> * manual/socket.texi (Out-of-Band Data): Check the atmark variable which
> is set by the ioctl instead of the undefined result variable.

LGTM, thanks.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

> ---
>  manual/socket.texi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/manual/socket.texi b/manual/socket.texi
> index 56948073d5..2ed8112344 100644
> --- a/manual/socket.texi
> +++ b/manual/socket.texi
> @@ -2999,7 +2999,7 @@ @node Out-of-Band Data
>        success = ioctl (socket, SIOCATMARK, &atmark);
>        if (success < 0)
>          perror ("ioctl");
> -      if (result)
> +      if (atmark)
>          return;
>  
>        /* @r{Otherwise, read a bunch of ordinary data and discard it.}



More information about the Libc-alpha mailing list