From badab93fb192e8d465262e14dffbb6044b8ab8c7 Mon Sep 17 00:00:00 2001 From: enami Date: Fri, 5 Jan 2001 05:42:45 +0000 Subject: Make this file compile again on alpha; size_t isn't always same size as int. --- lib/librmt/rmtlib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/librmt') 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); -- cgit