X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=common%2Fdumprmt.c;h=69ada17ac0980df2139c6f6a1ccfa7604db4af89;hp=129ce208c4c26d8ce9e82b5ec5a89f2caa1d9d60;hb=a18d599791e977f3e3d26123031e6ed4e64d6d08;hpb=9ca70cf6a082bb146eaaa0b09361643feca38875 diff --git a/common/dumprmt.c b/common/dumprmt.c index 129ce20..69ada17 100644 --- a/common/dumprmt.c +++ b/common/dumprmt.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: dumprmt.c,v 1.21 2002/05/21 15:48:46 stelian Exp $"; + "$Id: dumprmt.c,v 1.22 2002/07/19 14:57:39 stelian Exp $"; #endif /* not lint */ #include @@ -132,7 +132,7 @@ rmthost(const char *host) } static void -rmtconnaborted(int signo) +rmtconnaborted(UNUSED(int signo)) { msg("Lost connection to remote host.\n"); if (errfd != -1) { @@ -343,7 +343,7 @@ rmtstatus(void) if (rmtstate != TS_OPEN) return (NULL); rmtcall("status", "S\n"); - for (i = 0, cp = (char *)&mts; i < sizeof(mts); i++) + for (i = 0, cp = (char *)&mts; i < (int)sizeof(mts); i++) *cp++ = rmtgetb(); return (&mts); } @@ -363,7 +363,7 @@ static int rmtcall(const char *cmd, const char *buf) { - if (write(tormtape, buf, strlen(buf)) != strlen(buf)) + if (write(tormtape, buf, strlen(buf)) != (ssize_t)strlen(buf)) rmtconnaborted(0); return (rmtreply(cmd)); }