aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-06-06 12:43:05 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-06-06 12:43:05 +0000
commitff2f1f842ba0d9b4015589c0244a19ac8b1ee2ed (patch)
tree49d674ec064eeb4159d110ab1bafb18c11b083be
parentb5d848796bf639d43895eccf45e8f683869e3bfa (diff)
Make global variables static
Remove WARNS from Makefile
Notes
Notes: svn path=/head/; revision=284065
-rw-r--r--usr.bin/rsh/Makefile2
-rw-r--r--usr.bin/rsh/rsh.c6
2 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/rsh/Makefile b/usr.bin/rsh/Makefile
index d7c26a5e71b8..2005f2317f24 100644
--- a/usr.bin/rsh/Makefile
+++ b/usr.bin/rsh/Makefile
@@ -4,8 +4,6 @@
PROG= rsh
CFLAGS+=-I${.CURDIR}/../../libexec/rlogind
-WARNS?= 2
-
BINOWN= root
BINMODE=4555
diff --git a/usr.bin/rsh/rsh.c b/usr.bin/rsh/rsh.c
index a19539a8a8fd..5fa33e24b26b 100644
--- a/usr.bin/rsh/rsh.c
+++ b/usr.bin/rsh/rsh.c
@@ -77,10 +77,10 @@ __FBSDID("$FreeBSD$");
/*
* rsh - remote shell
*/
-int rfd2;
+static int rfd2;
-int family = PF_UNSPEC;
-char rlogin[] = "rlogin";
+static int family = PF_UNSPEC;
+static char rlogin[] = "rlogin";
void connect_timeout(int);
char *copyargs(char * const *);