diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-06-06 12:43:05 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-06-06 12:43:05 +0000 |
commit | ff2f1f842ba0d9b4015589c0244a19ac8b1ee2ed (patch) | |
tree | 49d674ec064eeb4159d110ab1bafb18c11b083be | |
parent | b5d848796bf639d43895eccf45e8f683869e3bfa (diff) |
Make global variables static
Remove WARNS from Makefile
Notes
Notes:
svn path=/head/; revision=284065
-rw-r--r-- | usr.bin/rsh/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/rsh/rsh.c | 6 |
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 *); |