summaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorCollin Funk <collin.funk1@gmail.com>2025-10-04 00:52:57 -0700
committerCollin Funk <collin.funk1@gmail.com>2025-10-06 19:14:59 -0700
commitfcfbc3ee310519f600b712c699e2f411c6a5c7d6 (patch)
tree68789e6cb6662ac8592064afc76e91bd8a840772 /manual
parentb96031cb5662f0b7a086c869ea265de922b4de7e (diff)
manual: check the correct variable in SIOCATMARK example [BZ #33093]
* manual/socket.texi (Out-of-Band Data): Check the atmark variable which is set by the ioctl instead of the undefined result variable. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'manual')
-rw-r--r--manual/socket.texi2
1 files changed, 1 insertions, 1 deletions
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 @@ discard_until_mark (int socket)
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.}