[PATCH] manual: check the correct variable in SIOCATMARK example [BZ #33093]
Collin Funk
collin.funk1@gmail.com
Sat Oct 4 07:52:57 GMT 2025
* manual/socket.texi (Out-of-Band Data): Check the atmark variable which
is set by the ioctl instead of the undefined result variable.
---
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.}
--
2.51.0
More information about the Libc-alpha
mailing list