X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=rmt%2Frmt.c;fp=rmt%2Frmt.c;h=7f93f57cf32991dd70d96fa329d05ab867db7cb5;hp=3167e1dd76e1f4015ccf83af6d26a763a28b7e0f;hb=900bffdb4fb7cf14ada66e3a0c81b1275cc7571f;hpb=2d32c89c9844547c83ef7a9ca97308da29e280cc diff --git a/rmt/rmt.c b/rmt/rmt.c index 3167e1d..7f93f57 100644 --- a/rmt/rmt.c +++ b/rmt/rmt.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: rmt.c,v 1.22 2003/01/10 14:42:51 stelian Exp $"; + "$Id: rmt.c,v 1.23 2003/02/12 11:02:31 stelian Exp $"; #endif /* not linux */ /* @@ -122,7 +122,7 @@ void getstring __P((char *)); int main(int argc, char *argv[]) { - int rval = 0; + OFF_T rval = 0; char c; int n, i, cc, oflags; unsigned long block = 0; @@ -214,7 +214,7 @@ top: rval = read(tape, record, n); if (rval < 0) goto ioerror; - (void)sprintf(resp, "A%d\n", rval); + (void)sprintf(resp, "A%lld\n", (long long)rval); (void)write(1, resp, strlen(resp)); (void)write(1, record, rval); block += n >> 10; @@ -347,7 +347,7 @@ top: if (ioctl(tape, MTIOCGET, (char *)&mtget) < 0) goto ioerror; rval = sizeof (mtget); - (void)sprintf(resp, "A%d\n", rval); + (void)sprintf(resp, "A%lld\n", (long long)rval); (void)write(1, resp, strlen(resp)); (void)write(1, (char *)&mtget, sizeof (mtget)); goto top; @@ -407,8 +407,8 @@ top: exit(3); } respond: - DEBUG1("rmtd: A %d\n", rval); - (void)sprintf(resp, "A%d\n", rval); + DEBUG1("rmtd: A %lld\n", (long long)rval); + (void)sprintf(resp, "A%lld\n", (long long)rval); (void)write(1, resp, strlen(resp)); goto top; ioerror: