diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2007-10-31 13:49:20 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2007-10-31 13:49:20 +0000 |
commit | 5d890e67dd71731b46f7877a5ceeaeacb8af097b (patch) | |
tree | 3ed0559f40a144c2a6da6cff02bac377f2807733 /usr.sbin/tcpdrop/tcpdrop.c | |
parent | b2c4f888fd620e1cc4a0cafb0f73b061c386b6b5 (diff) | |
download | src-test2-5d890e67dd71731b46f7877a5ceeaeacb8af097b.tar.gz src-test2-5d890e67dd71731b46f7877a5ceeaeacb8af097b.zip |
Notes
Diffstat (limited to 'usr.sbin/tcpdrop/tcpdrop.c')
-rw-r--r-- | usr.sbin/tcpdrop/tcpdrop.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/tcpdrop/tcpdrop.c b/usr.sbin/tcpdrop/tcpdrop.c index 68ef0ef1604b..06ca0da84a0f 100644 --- a/usr.sbin/tcpdrop/tcpdrop.c +++ b/usr.sbin/tcpdrop/tcpdrop.c @@ -45,8 +45,10 @@ main(int argc, char *argv[]) char fhbuf[NI_MAXHOST], fsbuf[NI_MAXSERV], lhbuf[NI_MAXHOST], lsbuf[NI_MAXSERV]; - if (argc != 5) - errx(1, "usage: tcpdrop laddr lport faddr fport\n"); + if (argc != 5) { + fprintf(stderr, "usage: tcpdrop laddr lport faddr fport\n"); + exit(1); + } memset(&hints, 0, sizeof(hints)); hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; |