summaryrefslogtreecommitdiffstats
path: root/usr.bin/who
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-06-20 07:36:22 +0000
committertjr <tjr@FreeBSD.org>2002-06-20 07:36:22 +0000
commitb36022fd558a3a5b24212b3f5bbccb85b15f6af5 (patch)
tree05e6b213b8d4b5d6e2072ff7173af6d82a133da1 /usr.bin/who
parent34948e5a7b970f94ae1059952aa20f4ee9276dc1 (diff)
downloadFreeBSD-src-b36022fd558a3a5b24212b3f5bbccb85b15f6af5.zip
FreeBSD-src-b36022fd558a3a5b24212b3f5bbccb85b15f6af5.tar.gz
Style: put static qualifier on definition of static functions.
Diffstat (limited to 'usr.bin/who')
-rw-r--r--usr.bin/who/who.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/who/who.c b/usr.bin/who/who.c
index 24f4aad..000cc21 100644
--- a/usr.bin/who/who.c
+++ b/usr.bin/who/who.c
@@ -132,7 +132,7 @@ main(int argc, char *argv[])
exit(0);
}
-void
+static void
usage(void)
{
@@ -140,7 +140,7 @@ usage(void)
exit(1);
}
-void
+static void
heading(void)
{
@@ -155,7 +155,7 @@ heading(void)
putchar('\n');
}
-void
+static void
row(struct utmp *ut)
{
char buf[80], tty[sizeof(_PATH_DEV) + UT_LINESIZE];
@@ -201,7 +201,7 @@ row(struct utmp *ut)
putchar('\n');
}
-void
+static void
process_utmp(FILE *fp)
{
struct utmp ut;
@@ -211,7 +211,7 @@ process_utmp(FILE *fp)
row(&ut);
}
-void
+static void
quick(FILE *fp)
{
struct utmp ut;
@@ -237,7 +237,7 @@ quick(FILE *fp)
printf("# users = %d\n", num);
}
-void
+static void
whoami(FILE *fp)
{
struct utmp ut;
@@ -269,7 +269,7 @@ whoami(FILE *fp)
row(&ut);
}
-int
+static int
ttywidth(void)
{
struct winsize ws;
OpenPOWER on IntegriCloud