svn commit: r284065 - head/usr.bin/rsh

Baptiste Daroussin bapt at FreeBSD.org
Sat Jun 6 12:43:06 UTC 2015


Author: bapt
Date: Sat Jun  6 12:43:05 2015
New Revision: 284065
URL: https://svnweb.freebsd.org/changeset/base/284065

Log:
  Make global variables static
  Remove WARNS from Makefile

Modified:
  head/usr.bin/rsh/Makefile
  head/usr.bin/rsh/rsh.c

Modified: head/usr.bin/rsh/Makefile
==============================================================================
--- head/usr.bin/rsh/Makefile	Sat Jun  6 12:41:25 2015	(r284064)
+++ head/usr.bin/rsh/Makefile	Sat Jun  6 12:43:05 2015	(r284065)
@@ -4,8 +4,6 @@
 PROG=	rsh
 CFLAGS+=-I${.CURDIR}/../../libexec/rlogind
 
-WARNS?=	2
-
 BINOWN=	root
 BINMODE=4555
 

Modified: head/usr.bin/rsh/rsh.c
==============================================================================
--- head/usr.bin/rsh/rsh.c	Sat Jun  6 12:41:25 2015	(r284064)
+++ head/usr.bin/rsh/rsh.c	Sat Jun  6 12:43:05 2015	(r284065)
@@ -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 *);


More information about the svn-src-all mailing list