summaryrefslogtreecommitdiff
path: root/lib/librmt
diff options
context:
space:
mode:
authorenami <enami@NetBSD.org>2001-01-05 05:42:45 +0000
committerenami <enami@NetBSD.org>2001-01-05 05:42:45 +0000
commitbadab93fb192e8d465262e14dffbb6044b8ab8c7 (patch)
tree49d45535367fc849fb507dd9eb7a3bf6d463eafb /lib/librmt
parent43ca618d61830a14a683b306ee74f55074e0b7fd (diff)
Make this file compile again on alpha; size_t isn't always same size as int.
Diffstat (limited to 'lib/librmt')
-rw-r--r--lib/librmt/rmtlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/librmt/rmtlib.c b/lib/librmt/rmtlib.c
index e5ba0313148..cf70731ca16 100644
--- a/lib/librmt/rmtlib.c
+++ b/lib/librmt/rmtlib.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rmtlib.c,v 1.15 2001/01/05 05:40:38 enami Exp $ */
+/* $NetBSD: rmtlib.c,v 1.16 2001/01/05 05:42:45 enami Exp $ */
/*
* rmt --- remote tape emulator subroutines
@@ -415,7 +415,7 @@ _rmt_read(int fildes, void *buf, size_t nbyte)
_DIAGASSERT(buf != NULL);
- (void)snprintf(buffer, sizeof buffer, "R%d\n", nbyte);
+ (void)snprintf(buffer, sizeof buffer, "R%lu\n", (u_long)nbyte);
if (command(fildes, buffer) == -1 || (rc = status(fildes)) == -1)
return (-1);
@@ -444,7 +444,7 @@ _rmt_write(int fildes, const void *buf, size_t nbyte)
_DIAGASSERT(buf != NULL);
- (void)snprintf(buffer, sizeof buffer, "W%d\n", nbyte);
+ (void)snprintf(buffer, sizeof buffer, "W%lu\n", (u_long)nbyte);
if (command(fildes, buffer) == -1)
return (-1);