diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2024-08-09 05:16:16 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2024-08-09 05:16:16 +0000 |
commit | 64417e98d530e581f6a3f3d432182d57fe5a76c3 (patch) | |
tree | 4edf9b44c631967ff6011430ad08f6b33df84336 /usr.sbin/pppd/pppstats/pppstats.c | |
parent | 8122b2be80fd8ce95da7de42c61a1f9a38f9107a (diff) |
ansi functions and prototypes
ok denis
Diffstat (limited to 'usr.sbin/pppd/pppstats/pppstats.c')
-rw-r--r-- | usr.sbin/pppd/pppstats/pppstats.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/usr.sbin/pppd/pppstats/pppstats.c b/usr.sbin/pppd/pppstats/pppstats.c index a606caf129a..90d71f542ee 100644 --- a/usr.sbin/pppd/pppstats/pppstats.c +++ b/usr.sbin/pppd/pppstats/pppstats.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pppstats.c,v 1.12 2015/02/09 23:00:14 deraadt Exp $ */ +/* $OpenBSD: pppstats.c,v 1.13 2024/08/09 05:16:15 deraadt Exp $ */ /* * print PPP statistics: @@ -97,15 +97,13 @@ usage() * Sets a flag to not wait for the alarm. */ void -catchalarm(arg) - int arg; +catchalarm(int arg) { signalled = 1; } void -get_ppp_stats(curp) - struct ppp_stats *curp; +get_ppp_stats(struct ppp_stats *curp) { struct ifpppstatsreq req; @@ -122,8 +120,7 @@ get_ppp_stats(curp) } void -get_ppp_cstats(csp) - struct ppp_comp_stats *csp; +get_ppp_cstats(struct ppp_comp_stats *csp) { struct ifpppcstatsreq creq; @@ -306,9 +303,7 @@ intpr() } int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int c; struct ifreq ifr; |