Misc cleanups: use __attribute__((__unused__)); remove dead code.

This commit is contained in:
Juan RP
2013-08-29 10:45:30 +02:00
parent efcb373f96
commit a039330f3c
15 changed files with 56 additions and 111 deletions

View File

@@ -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);