Skip to content

Commit

Permalink
Make global variables static
Browse files Browse the repository at this point in the history
Remove WARNS from Makefile
  • Loading branch information
bapt committed Jun 6, 2015
1 parent b5d8487 commit ff2f1f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions usr.bin/rsh/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
PROG= rsh
CFLAGS+=-I${.CURDIR}/../../libexec/rlogind

WARNS?= 2

BINOWN= root
BINMODE=4555

Expand Down
6 changes: 3 additions & 3 deletions usr.bin/rsh/rsh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);
Expand Down

0 comments on commit ff2f1f8

Please sign in to comment.