diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-09-01 23:01:29 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-09-01 23:01:29 +0000 |
| commit | bb8d56ce533acfdf87d8a78e18a1bd41426e25a5 (patch) | |
| tree | da1a22f7a275c7ca36919361b36b222d3e62268c /usr.bin/ftp | |
| parent | 7a27e6571bd5e8d2f5ae270025453040078ae6eb (diff) | |
Notes
Diffstat (limited to 'usr.bin/ftp')
| -rw-r--r-- | usr.bin/ftp/ftp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ftp/ftp.c b/usr.bin/ftp/ftp.c index 3e105661f8d3..fc4f0b26fd68 100644 --- a/usr.bin/ftp/ftp.c +++ b/usr.bin/ftp/ftp.c @@ -607,7 +607,7 @@ sendrequest(cmd, local, remote, printnames) rc = -1; switch (curtype) { case TYPE_A: - rc = fseek(fin, (long) restart_point, SEEK_SET); + rc = fseeko(fin, restart_point, SEEK_SET); break; case TYPE_I: case TYPE_L: @@ -1019,18 +1019,18 @@ recvrequest(cmd, local, remote, lmode, printnames, ignorespecial) case TYPE_A: if (is_retr && restart_point) { int ch; - long i, n; + off_t i, n; - if (fseek(fout, 0L, SEEK_SET) < 0) + if (fseeko(fout, (off_t)0, SEEK_SET) < 0) goto done; - n = (long)restart_point; + n = restart_point; for (i = 0; i++ < n;) { if ((ch = getc(fout)) == EOF) goto done; if (ch == '\n') i++; } - if (fseek(fout, 0L, SEEK_CUR) < 0) { + if (fseeko(fout, (off_t)0, SEEK_CUR) < 0) { done: warn("local: %s", local); progress = oprogress; |
