summaryrefslogtreecommitdiffstats
path: root/libuniso.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-11-24 10:26:36 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2011-11-24 10:26:36 +0100
commite77b89cfe05730f09428e81c1775bf21c0846640 (patch)
tree0415159b2905dc0e29c48ea954ce666063bef685 /libuniso.c
parentd0fc345d05ecbbac8aeb5c408aad08c243b4c011 (diff)
downloadlibuniso-e77b89cfe05730f09428e81c1775bf21c0846640.tar.bz2
libuniso-e77b89cfe05730f09428e81c1775bf21c0846640.tar.xz
build: enable -Werror by default and make it build
Diffstat (limited to 'libuniso.c')
-rw-r--r--libuniso.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libuniso.c b/libuniso.c
index 7c2686e..fdc7dba 100644
--- a/libuniso.c
+++ b/libuniso.c
@@ -355,7 +355,7 @@ static int queue_reader(
if (offset < ctx->pos) {
fprintf(stderr, "ERROR: non-linear reads are not supported "
- "(asked %x, we are at %x)\n",
+ "(asked %zx, we are at %zx)\n",
offset, ctx->last_queued_read);
return -1;
}
@@ -465,7 +465,7 @@ static int uniso_read_directory(struct uniso_context *ctx,
struct uniso_dirent *dir = container_of(rd, struct uniso_dirent, reader);
struct isofs_directory_record *ide;
char buf[512], *name;
- char *tmp;
+ unsigned char *tmp;
int r, i, offs;
if (ctx->loglevel > 1)
@@ -550,7 +550,7 @@ static int queue_dirent(struct uniso_context *ctx, void *isode, const char *name
static int uniso_read_volume_descriptor(struct uniso_context *ctx,
struct uniso_reader *rd)
{
- char buf[ISOFS_BLOCK_SIZE];
+ unsigned char buf[ISOFS_BLOCK_SIZE];
struct isofs_volume_descriptor *vd = (void*) buf;
struct isofs_pri_sup_descriptor *pd = (void*) buf;
char root_dir[sizeof(pd->root_directory_record)];
@@ -632,5 +632,6 @@ int uniso(int fd, void (*progress_callback)(size_t, size_t, const char*, void *)
free(ctx->tmpbuf);
close(ctx->null_fd);
+ return 0;
}