diff options
author | Christophe Grenier <grenier@cgsecurity.org> | 2013-05-25 13:09:02 +0200 |
---|---|---|
committer | Christophe Grenier <grenier@cgsecurity.org> | 2013-05-25 13:09:02 +0200 |
commit | b7a3d0755ff06dd98d60e27e00b89ad891dbf367 (patch) | |
tree | 6c438cb796c1d5c5c82cc4cadcc52282bdc7013d /src/io_redir.c | |
parent | cf15e5dcd2f75edef2f1ddb382ec08b628a7823f (diff) |
Fix various warning reported by gcc
Diffstat (limited to 'src/io_redir.c')
-rw-r--r-- | src/io_redir.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/io_redir.c b/src/io_redir.c index a8f85ca..be40cdb 100644 --- a/src/io_redir.c +++ b/src/io_redir.c @@ -56,7 +56,7 @@ struct info_io_redir }; static int io_redir_pread(disk_t *disk_car, void *buffer, const unsigned int count, const uint64_t offset); -static int io_redir_clean(disk_t *clean); +static void io_redir_clean(disk_t *clean); int io_redir_add_redir(disk_t *disk_car, const uint64_t org_offset, const unsigned int size, const uint64_t new_offset, const void *mem) { @@ -217,7 +217,7 @@ static int io_redir_pread(disk_t *disk_car, void *buffer, const unsigned int cou return count; } -static int io_redir_clean(disk_t *disk_car) +static void io_redir_clean(disk_t *disk_car) { if(disk_car->data) { @@ -227,6 +227,5 @@ static int io_redir_clean(disk_t *disk_car) free(disk_car->data); disk_car->data=NULL; } - return 0; } |