diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-06-07 01:41:54 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-06-07 01:41:54 +0000 |
commit | ecd7ab07f9b036f07250624d60b7ad0d969886cf (patch) | |
tree | 353589459886fb8fbdab2652bb0e1b881dad7a4a /usr.bin/w | |
parent | 8a3a920fbc415a8a4a31c61332859c590348f8e8 (diff) | |
download | FreeBSD-src-ecd7ab07f9b036f07250624d60b7ad0d969886cf.zip FreeBSD-src-ecd7ab07f9b036f07250624d60b7ad0d969886cf.tar.gz |
ANSI style function declarations.
Diffstat (limited to 'usr.bin/w')
-rw-r--r-- | usr.bin/w/pr_time.c | 6 | ||||
-rw-r--r-- | usr.bin/w/proc_compare.c | 3 | ||||
-rw-r--r-- | usr.bin/w/w.c | 18 |
3 files changed, 8 insertions, 19 deletions
diff --git a/usr.bin/w/pr_time.c b/usr.bin/w/pr_time.c index 817bbd8..5ac060d 100644 --- a/usr.bin/w/pr_time.c +++ b/usr.bin/w/pr_time.c @@ -52,8 +52,7 @@ static const char sccsid[] = "@(#)pr_time.c 8.2 (Berkeley) 4/4/94"; * Print the time since the user logged in. */ void -pr_attime(started, now) - time_t *started, *now; +pr_attime(time_t *started, time_t *now) { static char buf[256]; struct tm tp, tm; @@ -92,8 +91,7 @@ pr_attime(started, now) * Returns number of excess characters that were used for long idle time. */ int -pr_idle(idle) - time_t idle; +pr_idle(time_t idle) { /* If idle more than 36 hours, print as a number of days. */ if (idle >= 36 * 3600) { diff --git a/usr.bin/w/proc_compare.c b/usr.bin/w/proc_compare.c index 79f7f83..62ff0d2 100644 --- a/usr.bin/w/proc_compare.c +++ b/usr.bin/w/proc_compare.c @@ -75,8 +75,7 @@ __FBSDID("$FreeBSD$"); #define BOTH 3 int -proc_compare(p1, p2) - struct kinfo_proc *p1, *p2; +proc_compare(struct kinfo_proc *p1, struct kinfo_proc *p2) { if (p1 == NULL) diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index 9a16140..e93630f 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -129,9 +129,7 @@ static int this_is_uptime(const char *s); char *fmt_argv(char **, char *, int); /* ../../bin/ps/fmt.c */ int -main(argc, argv) - int argc; - char **argv; +main(int argc, char *argv[]) { struct kinfo_proc *kp; struct kinfo_proc *dkp; @@ -419,9 +417,7 @@ main(argc, argv) } static void -pr_header(nowp, nusers) - time_t *nowp; - int nusers; +pr_header(time_t *nowp, int nusers) { double avenrun[3]; time_t uptime; @@ -489,9 +485,7 @@ pr_header(nowp, nusers) } static struct stat * -ttystat(line, sz) - char *line; - int sz; +ttystat(char *line, int sz) { static struct stat sb; char ttybuf[MAXPATHLEN]; @@ -505,8 +499,7 @@ ttystat(line, sz) } static void -usage(wcmd) - int wcmd; +usage(int wcmd) { if (wcmd) (void)fprintf(stderr, @@ -517,8 +510,7 @@ usage(wcmd) } static int -this_is_uptime(s) - const char *s; +this_is_uptime(const char *s) { const char *u; |