diff options
Diffstat (limited to 'nc.c')
-rw-r--r-- | nc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -58,12 +58,12 @@ int nc_main(int argc, char **argv) | |||
58 | lport = atoi(optarg); | 58 | lport = atoi(optarg); |
59 | break; | 59 | break; |
60 | default: | 60 | default: |
61 | usage(nc_usage); | 61 | show_usage(); |
62 | } | 62 | } |
63 | } | 63 | } |
64 | 64 | ||
65 | if ((do_listen && optind != argc) || (!do_listen && optind + 2 != argc)) | 65 | if ((do_listen && optind != argc) || (!do_listen && optind + 2 != argc)) |
66 | usage(nc_usage); | 66 | show_usage(); |
67 | 67 | ||
68 | if ((sfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) | 68 | if ((sfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) |
69 | perror_msg_and_die("socket"); | 69 | perror_msg_and_die("socket"); |