libs/lmo: remove cast in first lseek(), not needed since it's a constant expression
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 30 Jul 2009 12:11:08 +0000 (12:11 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 30 Jul 2009 12:11:08 +0000 (12:11 +0000)
libs/lmo/src/lmo_core.c

index cd117be..17467f2 100644 (file)
@@ -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;