summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-07-30 03:30:24 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-07-30 03:30:24 +0000
commita9ae676c6122a544d6f4b02af1c1b47cf8e75571 (patch)
tree0bcb897a5a34b64c9056afeb9f521fd34a0ca00c
parent50cf0212abdd50768d7b64667b97bf21b28d8fcc (diff)
libs/lmo: explicitly cast values to off_t for lseek()
-rw-r--r--libs/lmo/src/lmo_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/lmo/src/lmo_core.c b/libs/lmo/src/lmo_core.c
index 0754d0dc5..f9e533130 100644
--- a/libs/lmo/src/lmo_core.c
+++ b/libs/lmo/src/lmo_core.c
@@ -74,7 +74,7 @@ lmo_archive_t * lmo_open(const char *file)
goto cleanup;
}
- if( lseek(in, -sizeof(uint32_t), SEEK_END) == -1 )
+ if( lseek(in, (off_t)(-sizeof(uint32_t)), SEEK_END) == -1 )
{
error("Can not seek to eof", 1);
goto cleanup;
@@ -86,7 +86,7 @@ lmo_archive_t * lmo_open(const char *file)
goto cleanup;
}
- if( lseek(in, idx_offset, SEEK_SET) == -1 )
+ if( lseek(in, (off_t)idx_offset, SEEK_SET) == -1 )
{
error("Can not seek to index offset", 1);
goto cleanup;