diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-09-06 05:54:08 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-09-06 05:54:08 +0000 |
commit | 9fa596d19788c0b2a4a7b18e33ed99bf09aa7ce6 (patch) | |
tree | afb6c347fc4441652af2fc5296bf0c6b33566a07 /usr.sbin/tcpdump | |
parent | ce3776a3f33c2add4ad9b3ced94efe386089f3d0 (diff) |
use ansi function decls
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r-- | usr.sbin/tcpdump/parsenfsfh.c | 14 | ||||
-rw-r--r-- | usr.sbin/tcpdump/print-stp.c | 15 | ||||
-rw-r--r-- | usr.sbin/tcpdump/print-sunrpc.c | 5 |
3 files changed, 11 insertions, 23 deletions
diff --git a/usr.sbin/tcpdump/parsenfsfh.c b/usr.sbin/tcpdump/parsenfsfh.c index 1cf89ca21c0..b8f8f7e049f 100644 --- a/usr.sbin/tcpdump/parsenfsfh.c +++ b/usr.sbin/tcpdump/parsenfsfh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parsenfsfh.c,v 1.14 2016/01/15 18:02:18 mmcc Exp $ */ +/* $OpenBSD: parsenfsfh.c,v 1.15 2023/09/06 05:54:07 jsg Exp $ */ /* * Copyright (c) 1993, 1994 Jeffrey C. Mogul, Digital Equipment Corporation, @@ -97,12 +97,9 @@ static int is_UCX(unsigned char *); void -Parse_fh(fh, fsidp, inop, osnamep, fsnamep) -caddr_t *fh; -my_fsid *fsidp; -ino_t *inop; -char **osnamep; /* if non-NULL, return OS name here */ -char **fsnamep; /* if non-NULL, return server fs name here (for VMS) */ +Parse_fh(caddr_t *fh, my_fsid *fsidp, ino_t *inop, + char **osnamep, /* if non-NULL, return OS name here */ + char **fsnamep) /* if non-NULL, return server fs name here (for VMS) */ { unsigned char *fhp = (unsigned char *)fh; u_int32_t temp; @@ -392,8 +389,7 @@ char **fsnamep; /* if non-NULL, return server fs name here (for VMS) */ * (3) followed by string of nulls */ static int -is_UCX(fhp) -unsigned char *fhp; +is_UCX(unsigned char *fhp) { int i; int seen_null = 0; diff --git a/usr.sbin/tcpdump/print-stp.c b/usr.sbin/tcpdump/print-stp.c index 07a4b8f5aa6..7b265a7b98e 100644 --- a/usr.sbin/tcpdump/print-stp.c +++ b/usr.sbin/tcpdump/print-stp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-stp.c,v 1.11 2023/03/13 14:58:01 mbuhl Exp $ */ +/* $OpenBSD: print-stp.c,v 1.12 2023/09/06 05:54:07 jsg Exp $ */ /* * Copyright (c) 2000 Jason L. Wright (jason@thought.net) @@ -85,9 +85,7 @@ static void stp_print_cbpdu(const u_char *, u_int, int); static void stp_print_tbpdu(const u_char *, u_int); void -stp_print(p, len) - const u_char *p; - u_int len; +stp_print(const u_char *p, u_int len) { u_int16_t id; int proto = STP_PROTO_STP; @@ -155,10 +153,7 @@ truncated: } static void -stp_print_cbpdu(p, len, proto) - const u_char *p; - u_int len; - int proto; +stp_print_cbpdu(const u_char *p, u_int len, int proto) { u_int32_t cost; u_int16_t t; @@ -294,9 +289,7 @@ truncated: } static void -stp_print_tbpdu(p, len) - const u_char *p; - u_int len; +stp_print_tbpdu(const u_char *p, u_int len) { printf(" tcn"); } diff --git a/usr.sbin/tcpdump/print-sunrpc.c b/usr.sbin/tcpdump/print-sunrpc.c index 6735704cc1e..74f0ecbaef1 100644 --- a/usr.sbin/tcpdump/print-sunrpc.c +++ b/usr.sbin/tcpdump/print-sunrpc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-sunrpc.c,v 1.22 2022/01/05 05:29:54 dlg Exp $ */ +/* $OpenBSD: print-sunrpc.c,v 1.23 2023/09/06 05:54:07 jsg Exp $ */ /* * Copyright (c) 1992, 1993, 1994, 1995, 1996 @@ -91,8 +91,7 @@ sunrpcrequest_print(const u_char *bp, u_int length, const u_char *bp2) } static char * -progstr(prog) - u_int32_t prog; +progstr(u_int32_t prog) { char progname[32]; static char buf[32]; |