summaryrefslogtreecommitdiff
path: root/usr.bin/w/w.c
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2002-06-07 01:41:54 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2002-06-07 01:41:54 +0000
commite8e649cc5dd773fdde330d58c17c9f03e2f28286 (patch)
tree353589459886fb8fbdab2652bb0e1b881dad7a4a /usr.bin/w/w.c
parentc9ca25843091b1076a9ccbd5e67a12120b0ba8cc (diff)
downloadsrc-test2-e8e649cc5dd773fdde330d58c17c9f03e2f28286.tar.gz
src-test2-e8e649cc5dd773fdde330d58c17c9f03e2f28286.zip
Notes
Diffstat (limited to 'usr.bin/w/w.c')
-rw-r--r--usr.bin/w/w.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c
index 9a16140096d5..e93630f2e73d 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;