diff options
Diffstat (limited to 'contrib/tcp_wrappers/tcpdmatch.c')
-rw-r--r-- | contrib/tcp_wrappers/tcpdmatch.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/contrib/tcp_wrappers/tcpdmatch.c b/contrib/tcp_wrappers/tcpdmatch.c index 0e77ba4910f5..e549f6e9115d 100644 --- a/contrib/tcp_wrappers/tcpdmatch.c +++ b/contrib/tcp_wrappers/tcpdmatch.c @@ -53,9 +53,7 @@ static void tcpdmatch(struct request_info *request); /* The main program */ -int main(argc, argv) -int argc; -char **argv; +int main(int argc, char **argv) { #ifdef INET6 struct addrinfo hints, *hp, *res; @@ -316,8 +314,7 @@ char **argv; /* Explain how to use this program */ -static void usage(myname) -char *myname; +static void usage(char *myname) { fprintf(stderr, "usage: %s [-d] [-i inet_conf] daemon[@host] [user@]host\n", myname); @@ -328,10 +325,7 @@ char *myname; /* Print interesting expansions */ -static void expand(text, pattern, request) -char *text; -char *pattern; -struct request_info *request; +static void expand(char *text, char *pattern, struct request_info *request) { char buf[BUFSIZ]; @@ -341,8 +335,7 @@ struct request_info *request; /* Try out a (server,client) pair */ -static void tcpdmatch(request) -struct request_info *request; +static void tcpdmatch(struct request_info *request) { int verdict; |