diff options
| author | lukem <lukem@NetBSD.org> | 2001-11-05 15:10:25 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 2001-11-05 15:10:25 +0000 |
| commit | 6a973ed877516e1dbe2407ea6685a657d88ca06a (patch) | |
| tree | ef503d973bca6e1964d8b97b904e5d3b570fd763 /lib/librmt | |
| parent | 58164365b33a0c32211facf3c8a64ba3b998b0c0 (diff) | |
WARNS=2 fixes
Diffstat (limited to 'lib/librmt')
| -rw-r--r-- | lib/librmt/rmtlib.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/librmt/rmtlib.c b/lib/librmt/rmtlib.c index 1d887b27941..a707c7a506d 100644 --- a/lib/librmt/rmtlib.c +++ b/lib/librmt/rmtlib.c @@ -1,4 +1,4 @@ -/* $NetBSD: rmtlib.c,v 1.17 2001/04/06 11:13:55 wiz Exp $ */ +/* $NetBSD: rmtlib.c,v 1.18 2001/11/05 15:10:25 lukem Exp $ */ /* * rmt --- remote tape emulator subroutines @@ -249,14 +249,14 @@ _rmt_open(const char *path, int oflag, int mode) { int i, rc; char buffer[BUFMAGIC]; - char system[MAXHOSTLEN]; + char host[MAXHOSTLEN]; char device[BUFMAGIC]; char login[BUFMAGIC]; char *sys, *dev, *user; _DIAGASSERT(path != NULL); - sys = system; + sys = host; dev = device; user = login; @@ -290,9 +290,9 @@ _rmt_open(const char *path, int oflag, int mode) path++; if (*(path - 1) == '@') { - (void)strncpy(user, system, sizeof(login) - 1); + (void)strncpy(user, host, sizeof(login) - 1); /* saw user part of user@host */ - sys = system; /* start over */ + sys = host; /* start over */ while (*path != ':') { *sys++ = *path++; } @@ -320,7 +320,7 @@ _rmt_open(const char *path, int oflag, int mode) /* * Execute the remote command using rexec */ - READ(i) = WRITE(i) = _rmt_rexec(system, login); + READ(i) = WRITE(i) = _rmt_rexec(host, login); if (READ(i) < 0) return (-1); #else @@ -354,10 +354,10 @@ _rmt_open(const char *path, int oflag, int mode) rsh++; if (*login) { - execl(rshpath, rsh, system, "-l", login, + execl(rshpath, rsh, host, "-l", login, _PATH_RMT, NULL); } else { - execl(rshpath, rsh, system, + execl(rshpath, rsh, host, _PATH_RMT, NULL); } |
