mirror of git://sourceware.org/git/glibc.git
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>
This commit is contained in:
parent
b96031cb56
commit
fcfbc3ee31
|
|
@ -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.}
|
||||
|
|
|
|||
Loading…
Reference in New Issue