summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-09-05 12:22:28 +0000
committerdes <des@FreeBSD.org>2001-09-05 12:22:28 +0000
commita0569e9940929a17b7b15efcfbcde5247a42413b (patch)
treef3a7279588c0010fe568862920e96a8334575ee1 /lib
parent46bc9d1a6454f5d993df6ed6e074d29517155f6d (diff)
downloadFreeBSD-src-a0569e9940929a17b7b15efcfbcde5247a42413b.zip
FreeBSD-src-a0569e9940929a17b7b15efcfbcde5247a42413b.tar.gz
Use fseeko() instead of fseek() (u->offset is already an off_t), and mark
some function arguments as unused.
Diffstat (limited to 'lib')
-rw-r--r--lib/libfetch/file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libfetch/file.c b/lib/libfetch/file.c
index 4e2ddc7..220f866 100644
--- a/lib/libfetch/file.c
+++ b/lib/libfetch/file.c
@@ -51,7 +51,7 @@ fetchXGetFile(struct url *u, struct url_stat *us, const char *flags)
if (f == NULL)
_fetch_syserr();
- if (u->offset && fseek(f, u->offset, SEEK_SET) == -1) {
+ if (u->offset && fseeko(f, u->offset, SEEK_SET) == -1) {
fclose(f);
_fetch_syserr();
}
@@ -78,7 +78,7 @@ fetchPutFile(struct url *u, const char *flags)
if (f == NULL)
_fetch_syserr();
- if (u->offset && fseek(f, u->offset, SEEK_SET) == -1) {
+ if (u->offset && fseeko(f, u->offset, SEEK_SET) == -1) {
fclose(f);
_fetch_syserr();
}
@@ -104,13 +104,13 @@ _fetch_stat_file(const char *fn, struct url_stat *us)
}
int
-fetchStatFile(struct url *u, struct url_stat *us, const char *flags)
+fetchStatFile(struct url *u, struct url_stat *us, const char *flags __unused)
{
return _fetch_stat_file(u->doc, us);
}
struct url_ent *
-fetchListFile(struct url *u, const char *flags)
+fetchListFile(struct url *u, const char *flags __unused)
{
DIR *dir;
struct dirent *de;
OpenPOWER on IntegriCloud