summaryrefslogtreecommitdiffstats
path: root/libexec/talkd/talkd.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2012-10-20 10:33:15 +0000
committered <ed@FreeBSD.org>2012-10-20 10:33:15 +0000
commitc23d2a42d74060bd07f9ee272b392868da7abea2 (patch)
tree27b346e0c9d07492d198e14e7d63aab1892e4ff2 /libexec/talkd/talkd.c
parente65c2d3d073186914cbb3ad3494d5da8b3bde8d5 (diff)
downloadFreeBSD-src-c23d2a42d74060bd07f9ee272b392868da7abea2.zip
FreeBSD-src-c23d2a42d74060bd07f9ee272b392868da7abea2.tar.gz
More -Wmissing-variable-declarations fixes.
In addition to adding missing `static' keywords: - bin/dd: Pull in `extern.h' to guarantee consistency with source file. - libexec/rpc.rusersd: Move shared globals into an extern.h. - libexec/talkd: Move `debug' and `hostname' into extern.h. - usr.bin/cksum: Put counters in extern.h, as they are used by ckdist/mtree. - usr.bin/m4: Move `end_result' into extern.h. - usr.sbin/services_mkdb: Move shared globals into an extern.h.
Diffstat (limited to 'libexec/talkd/talkd.c')
-rw-r--r--libexec/talkd/talkd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libexec/talkd/talkd.c b/libexec/talkd/talkd.c
index e81cec6..56ce441 100644
--- a/libexec/talkd/talkd.c
+++ b/libexec/talkd/talkd.c
@@ -69,13 +69,13 @@ static const char rcsid[] =
#include "extern.h"
-CTL_MSG request;
-CTL_RESPONSE response;
+static CTL_MSG request;
+static CTL_RESPONSE response;
-int debug = 0;
-long lastmsgtime;
+int debug = 0;
+static long lastmsgtime;
-char hostname[MAXHOSTNAMELEN];
+char hostname[MAXHOSTNAMELEN];
#define TIMEOUT 30
#define MAXIDLE 120
OpenPOWER on IntegriCloud