aboutsummaryrefslogtreecommitdiff
path: root/bin/date
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2012-10-19 14:49:42 +0000
committerEd Schouten <ed@FreeBSD.org>2012-10-19 14:49:42 +0000
commitbf70becee6ff4798acdcfd586a88ad38b7b17495 (patch)
treeddffe542a2e921ec48c73d322a2046f559a9d74f /bin/date
parent39893d565a6c4b948fc0ba1b8c22ee1d57f2aaa4 (diff)
More -Wmissing-variable-declarations fixes.
In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
Notes
Notes: svn path=/head/; revision=241737
Diffstat (limited to 'bin/date')
-rw-r--r--bin/date/extern.h2
-rw-r--r--bin/date/netdate.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/date/extern.h b/bin/date/extern.h
index 76b8d5e16105..91aeab2e07e1 100644
--- a/bin/date/extern.h
+++ b/bin/date/extern.h
@@ -30,4 +30,6 @@
* $FreeBSD$
*/
+extern int retval;
+
int netsettime(time_t);
diff --git a/bin/date/netdate.c b/bin/date/netdate.c
index b8441068eadf..b085be4db68f 100644
--- a/bin/date/netdate.c
+++ b/bin/date/netdate.c
@@ -55,8 +55,6 @@ __FBSDID("$FreeBSD$");
#define WAITACK 2 /* seconds */
#define WAITDATEACK 5 /* seconds */
-extern int retval;
-
/*
* Set the date in the machines controlled by timedaemons by communicating the
* new date to the local timedaemon. If the timedaemon is in the master state,