Skip to contentSkip to conversation

sockatmark.3: Fix example code

PATCH New Seonghun Lim 1 participant 1 message Nov 8, 2017 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sockatmark.3: Fix example code

---
 man3/sockatmark.3 | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
man3/sockatmark.3 +0 -0
index 79685c3ed..fc7022216 100644
@@ -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)

Signature · 4 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html