]> git.wh0rd.org - dump.git/blobdiff - common/dumprmt.c
Largefile version of seek in rmt.
[dump.git] / common / dumprmt.c
index f89a13de1fb60a1c5cf5fdc14b0b3bdd12a85dee..1d49a240d5e8883aeb9c650c997d59f0e1c12195 100644 (file)
@@ -41,7 +41,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: dumprmt.c,v 1.23 2002/07/29 12:00:33 stelian Exp $";
+       "$Id: dumprmt.c,v 1.24 2003/01/10 14:42:50 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
@@ -331,12 +331,12 @@ rmtwrite(const char *buf, size_t count)
        return (rmtreply("write"));
 }
 
-int
-rmtseek(int offset, int pos)
+OFF_T
+rmtseek(OFF_T offset, int pos)
 {
        char line[80];
 
-       (void)snprintf(line, sizeof (line), "L%d\n%d\n", offset, pos);
+       (void)snprintf(line, sizeof (line), "L%lld\n%d\n", (long long)offset, pos);
        return (rmtcall("seek", line));
 }