Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librmt WARNS=2 fixes
details: https://anonhg.NetBSD.org/src/rev/95bd55601eb8
branches: trunk
changeset: 517032:95bd55601eb8
user: lukem <lukem%NetBSD.org@localhost>
date: Mon Nov 05 15:10:25 2001 +0000
description:
WARNS=2 fixes
diffstat:
lib/librmt/rmtlib.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (60 lines):
diff -r 466b590dc4e7 -r 95bd55601eb8 lib/librmt/rmtlib.c
--- a/lib/librmt/rmtlib.c Mon Nov 05 15:05:55 2001 +0000
+++ b/lib/librmt/rmtlib.c Mon Nov 05 15:10:25 2001 +0000
@@ -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 @@
{
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 @@
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 @@
/*
* 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 @@
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);
}
Home |
Main Index |
Thread Index |
Old Index