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 cd117bec804824b422be1bfbe0edacd87fbfdeb7..17467f21e6e3f4597225d253c53e9dbf1930ee4f 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;