summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-07-30 12:11:08 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-07-30 12:11:08 +0000
commit12400496cc4a15fe1e7afbe0795f9ab3f4207790 (patch)
tree13fecae4f94d234794485dc2c9ff11d8dccd1ca3 /libs
parent1172027f5a2fb440395491311db70c21f0dd0e37 (diff)
libs/lmo: remove cast in first lseek(), not needed since it's a constant expression
Diffstat (limited to 'libs')
-rw-r--r--libs/lmo/src/lmo_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/lmo/src/lmo_core.c b/libs/lmo/src/lmo_core.c
index cd117bec8..17467f21e 100644
--- a/libs/lmo/src/lmo_core.c
+++ b/libs/lmo/src/lmo_core.c
@@ -71,7 +71,7 @@ lmo_archive_t * lmo_open(const char *file)
goto cleanup;
}
- if( lseek(in, (off_t)(-sizeof(uint32_t)), SEEK_END) == -1 )
+ if( lseek(in, -sizeof(uint32_t), SEEK_END) == -1 )
{
error("Can not seek to eof", 1);
goto cleanup;