projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
398e0aa
)
luci-0.9: merge r5168
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 30 Jul 2009 03:31:19 +0000
(
03:31
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 30 Jul 2009 03:31:19 +0000
(
03:31
+0000)
libs/lmo/src/lmo_core.c
patch
|
blob
|
history
diff --git
a/libs/lmo/src/lmo_core.c
b/libs/lmo/src/lmo_core.c
index 0754d0dc532ad790ef6eb899086ba07112d7bf0f..f9e5331309aaf1d8f04d1f9923794bdea574fd1e 100644
(file)
--- 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;