Misc cleanups: use __attribute__((__unused__)); remove dead code.
This commit is contained in:
@@ -46,12 +46,10 @@ struct fetch_archive {
|
||||
};
|
||||
|
||||
static int
|
||||
fetch_archive_open(struct archive *a, void *client_data)
|
||||
fetch_archive_open(struct archive *a _unused, void *client_data)
|
||||
{
|
||||
struct fetch_archive *f = client_data;
|
||||
|
||||
(void)a;
|
||||
|
||||
f->fetch = fetchGet(f->url, NULL);
|
||||
if (f->fetch == NULL)
|
||||
return ENOENT;
|
||||
@@ -60,23 +58,20 @@ fetch_archive_open(struct archive *a, void *client_data)
|
||||
}
|
||||
|
||||
static ssize_t
|
||||
fetch_archive_read(struct archive *a, void *client_data, const void **buf)
|
||||
fetch_archive_read(struct archive *a _unused, void *client_data, const void **buf)
|
||||
{
|
||||
struct fetch_archive *f = client_data;
|
||||
|
||||
(void)a;
|
||||
*buf = f->buffer;
|
||||
|
||||
return fetchIO_read(f->fetch, f->buffer, sizeof(f->buffer));
|
||||
}
|
||||
|
||||
static int
|
||||
fetch_archive_close(struct archive *a, void *client_data)
|
||||
fetch_archive_close(struct archive *a _unused, void *client_data)
|
||||
{
|
||||
struct fetch_archive *f = client_data;
|
||||
|
||||
(void)a;
|
||||
|
||||
if (f->fetch != NULL)
|
||||
fetchIO_close(f->fetch);
|
||||
free(f);
|
||||
|
Reference in New Issue
Block a user