* [patch] sockatmark.3: Fix example code
@ 2017-11-08 7:19 Seonghun Lim
0 siblings, 0 replies; only message in thread
From: Seonghun Lim @ 2017-11-08 7:19 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
---
man3/sockatmark.3 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man3/sockatmark.3 b/man3/sockatmark.3
index 79685c3ed..fc7022216 100644
--- a/man3/sockatmark.3
+++ b/man3/sockatmark.3
@@ -129,7 +129,7 @@ and then read the byte of data at the mark:
if (atmark)
break;
- s = read(sockfd, buf, BUF_LEN) <= 0);
+ s = read(sockfd, buf, BUF_LEN);
if (s == \-1)
perror("read");
if (s <= 0)
--
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-11-08 7:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-08 7:19 [patch] sockatmark.3: Fix example code Seonghun Lim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).