diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-05-20 09:46:46 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-05-20 09:46:46 +0200 |
commit | 699f17852dde0a51f80c12081a33aaa6ba1b4576 (patch) | |
tree | 6fdc64011dccc3418a6321dd55cb793a0b04862a /uniso.c | |
parent | 530240668ac7470b35b3a3f904324d7a2b87bb46 (diff) | |
download | alpine-conf-699f17852dde0a51f80c12081a33aaa6ba1b4576.zip |
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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |