cast lseek argument
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 20 May 1993 05:56:52 +0000 (21:56 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 20 May 1993 05:56:52 +0000 (21:56 -0800)
SCCS-vsn: usr.sbin/rmt/rmt.c 5.8

usr/src/usr.sbin/rmt/rmt.c

index 307dc47..e37e7b3 100644 (file)
@@ -12,7 +12,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)rmt.c      5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)rmt.c      5.8 (Berkeley) %G%";
 #endif /* not lint */
 
 /*
 #endif /* not lint */
 
 /*
@@ -95,7 +95,7 @@ top:
                getstring(count);
                getstring(pos);
                DEBUG2("rmtd: L %s %s\n", count, pos);
                getstring(count);
                getstring(pos);
                DEBUG2("rmtd: L %s %s\n", count, pos);
-               rval = lseek(tape, atol(count), atoi(pos));
+               rval = lseek(tape, (off_t)atol(count), atoi(pos));
                if (rval < 0)
                        goto ioerror;
                goto respond;
                if (rval < 0)
                        goto ioerror;
                goto respond;