Normalize usage output.
This commit is contained in:
parent
b2c4f888fd
commit
5d890e67dd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173223
@ -45,8 +45,10 @@ main(int argc, char *argv[])
|
|||||||
char fhbuf[NI_MAXHOST], fsbuf[NI_MAXSERV], lhbuf[NI_MAXHOST],
|
char fhbuf[NI_MAXHOST], fsbuf[NI_MAXSERV], lhbuf[NI_MAXHOST],
|
||||||
lsbuf[NI_MAXSERV];
|
lsbuf[NI_MAXSERV];
|
||||||
|
|
||||||
if (argc != 5)
|
if (argc != 5) {
|
||||||
errx(1, "usage: tcpdrop laddr lport faddr fport\n");
|
fprintf(stderr, "usage: tcpdrop laddr lport faddr fport\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
memset(&hints, 0, sizeof(hints));
|
memset(&hints, 0, sizeof(hints));
|
||||||
hints.ai_family = AF_UNSPEC;
|
hints.ai_family = AF_UNSPEC;
|
||||||
hints.ai_socktype = SOCK_STREAM;
|
hints.ai_socktype = SOCK_STREAM;
|
||||||
|
Loading…
Reference in New Issue
Block a user