[PATCH] unix.7: tfix 'ret' check after accept populates 'data_socket'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A typo from 15545eb6 (unix.7: Add example, 2016-01-06).

Signed-off-by: W. Trevor King <wking@xxxxxxxxxx>
---
 man7/unix.7 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man7/unix.7 b/man7/unix.7
index 64f7610..ca6a621 100644
--- a/man7/unix.7
+++ b/man7/unix.7
@@ -735,7 +735,7 @@ main(int argc, char *argv[])
         /* Wait for incoming connection. */
 
         data_socket = accept(connection_socket, NULL, NULL);
-        if (ret == \-1) {
+        if (data_socket == \-1) {
             perror("accept");
             exit(EXIT_FAILURE);
         }
-- 
2.1.0.60.g85f0837

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux