From 98b8c4cb10644d116c56d2c450fc0db546bd4bd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Wed, 5 Sep 2001 12:22:28 +0000 Subject: [PATCH] Use fseeko() instead of fseek() (u->offset is already an off_t), and mark some function arguments as unused. --- lib/libfetch/file.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libfetch/file.c b/lib/libfetch/file.c index 4e2ddc7e314..220f8666654 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;