diff options
| author | W. Trevor King <wking@tremily.us> | 2016-05-12 01:24:26 -0700 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-05-18 13:16:57 +0200 |
| commit | 3cb43b9579bd4efeec8c557185dd89e6c956604b (patch) | |
| tree | 0e83a1ee23b36a889a9fb30f36983e80f53e6c09 /man7/unix.7 | |
| parent | dad5081f4ad400c8b02fe6bfe3f7a3033d48a696 (diff) | |
| download | man-pages-3cb43b9579bd4efeec8c557185dd89e6c956604b.tar.gz | |
unix.7: Fix example code: 'ret' check after accept populates 'data_socket'
A typo from 15545eb6 (unix.7: Add example, 2016-01-06).
Signed-off-by: W. Trevor King <wking@tremily.us>
Diffstat (limited to 'man7/unix.7')
| -rw-r--r-- | man7/unix.7 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man7/unix.7 b/man7/unix.7 index 64f761094d..ca6a621d0a 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); } |
