On 05/12/2016 10:24 AM, W. Trevor King wrote: > A typo from 15545eb6 (unix.7: Add example, 2016-01-06). > > Signed-off-by: W. Trevor King <wking@xxxxxxxxxx> Thanks, Trevor. Applied. Cheers, Michael > --- > 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); > } > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- 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