From 64417e98d530e581f6a3f3d432182d57fe5a76c3 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 9 Aug 2024 05:16:16 +0000 Subject: ansi functions and prototypes ok denis --- usr.sbin/pppd/pppstats/pppstats.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'usr.sbin/pppd/pppstats/pppstats.c') 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; -- cgit v1.2.3