summaryrefslogtreecommitdiffstats
path: root/src/io_redir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-25 13:09:02 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-25 13:09:02 +0200
commitb7a3d0755ff06dd98d60e27e00b89ad891dbf367 (patch)
tree6c438cb796c1d5c5c82cc4cadcc52282bdc7013d /src/io_redir.c
parentcf15e5dcd2f75edef2f1ddb382ec08b628a7823f (diff)
Fix various warning reported by gcc
Diffstat (limited to 'src/io_redir.c')
-rw-r--r--src/io_redir.c5
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;
}