X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=common%2Fdumprmt.c;fp=common%2Fdumprmt.c;h=1d49a240d5e8883aeb9c650c997d59f0e1c12195;hp=f89a13de1fb60a1c5cf5fdc14b0b3bdd12a85dee;hb=5bf65105dbaf0bb3d6fb4ccb3d8790bda496d861;hpb=7fcd6df59144f29299a35d54bec24a147fd19f12 diff --git a/common/dumprmt.c b/common/dumprmt.c index f89a13d..1d49a24 100644 --- a/common/dumprmt.c +++ b/common/dumprmt.c @@ -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 @@ -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)); }