summaryrefslogtreecommitdiffstats
path: root/usr.bin/calendar/calendar.c
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2008-08-05 08:16:37 +0000
committeredwin <edwin@FreeBSD.org>2008-08-05 08:16:37 +0000
commit12b4602e860e198949384549116ff0ef444e2665 (patch)
treee1b62882dde00b916d883dc08e04552e655edb50 /usr.bin/calendar/calendar.c
parent8a75d14908eac0b506537bc0476a339cb9b13f7d (diff)
downloadFreeBSD-src-12b4602e860e198949384549116ff0ef444e2665.zip
FreeBSD-src-12b4602e860e198949384549116ff0ef444e2665.tar.gz
Move functions which are only locally used into their C files and
make them static. usage() in calendar.c event_*() in io.c PR: bin/118644 Approved by: bde@ (mentor)
Diffstat (limited to 'usr.bin/calendar/calendar.c')
-rw-r--r--usr.bin/calendar/calendar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/calendar/calendar.c b/usr.bin/calendar/calendar.c
index afd543c..d1bb745 100644
--- a/usr.bin/calendar/calendar.c
+++ b/usr.bin/calendar/calendar.c
@@ -66,6 +66,8 @@ int f_dayAfter = 0; /* days after current date */
int f_dayBefore = 0; /* days before current date */
int Friday = 5; /* day before weekend */
+static void usage(void) __dead2;
+
int
main(int argc, char *argv[])
{
@@ -140,7 +142,7 @@ main(int argc, char *argv[])
}
-void
+static void __dead2
usage(void)
{
OpenPOWER on IntegriCloud