Module Name: src
Committed By: lukem
Date: Sat Apr 11 07:55:35 UTC 2009
Modified Files:
src/sbin/dump: dumprmt.c
Log Message:
fix sign-compare issue
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sbin/dump/dumprmt.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/dump/dumprmt.c
diff -u src/sbin/dump/dumprmt.c:1.32 src/sbin/dump/dumprmt.c:1.33
--- src/sbin/dump/dumprmt.c:1.32 Mon Dec 18 20:07:32 2006
+++ src/sbin/dump/dumprmt.c Sat Apr 11 07:55:35 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: dumprmt.c,v 1.32 2006/12/18 20:07:32 christos Exp $ */
+/* $NetBSD: dumprmt.c,v 1.33 2009/04/11 07:55:35 lukem Exp $ */
/*-
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)dumprmt.c 8.3 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: dumprmt.c,v 1.32 2006/12/18 20:07:32 christos Exp $");
+__RCSID("$NetBSD: dumprmt.c,v 1.33 2009/04/11 07:55:35 lukem Exp $");
#endif
#endif /* not lint */
@@ -291,7 +291,7 @@
rmtcall(const char *cmd, const char *buf, int verbose)
{
- if (write(rmtape, buf, strlen(buf)) != strlen(buf))
+ if ((size_t)write(rmtape, buf, strlen(buf)) != strlen(buf))
rmtconnaborted(0);
return (rmtreply(cmd, verbose));
}