aboutsummaryrefslogtreecommitdiffstats
path: root/uniso.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-05-20 09:46:46 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-05-20 09:46:46 +0200
commit699f17852dde0a51f80c12081a33aaa6ba1b4576 (patch)
tree6fdc64011dccc3418a6321dd55cb793a0b04862a /uniso.c
parent530240668ac7470b35b3a3f904324d7a2b87bb46 (diff)
downloadalpine-conf-699f17852dde0a51f80c12081a33aaa6ba1b4576.tar.bz2
alpine-conf-699f17852dde0a51f80c12081a33aaa6ba1b4576.tar.xz
uniso: fix compiler warnings
fix warnings about unsigned/signed chars and return from non-void function.
Diffstat (limited to 'uniso.c')
-rw-r--r--uniso.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/uniso.c b/uniso.c
index 75e0e69..ec4815d 100644
--- a/uniso.c
+++ b/uniso.c
@@ -462,7 +462,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)
@@ -547,7 +547,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)];
@@ -631,6 +631,7 @@ int uniso(int fd)
free(ctx->tmpbuf);
close(ctx->null_fd);
+ return 0;
}
int main(void)