aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2014-05-13 17:02:55 -0700
committerJP Abgrall <jpa@google.com>2014-05-14 17:03:42 -0700
commit3c85e737308ef95629b232745d6a8d141d87cc9a (patch)
treeeace8748fd0da19a2835a7bf181892039cb79551 /lib
parent9948e364c3ebd5b11750f91d444ac1afe1369833 (diff)
downloadandroid_external_f2fs-tools-3c85e737308ef95629b232745d6a8d141d87cc9a.tar.gz
android_external_f2fs-tools-3c85e737308ef95629b232745d6a8d141d87cc9a.tar.bz2
android_external_f2fs-tools-3c85e737308ef95629b232745d6a8d141d87cc9a.zip
Cleanup various build warnings (signed vs unsigned, unused vars,...)
* removed unused includes. * removed unused parameters. * Fixed a bunch of warnings around: int i; if (i < some_uint) ... and u32 x; ... if (x < 0) return error; * Protect BLKDISCARD usage if it is not available. Change-Id: Iede035b1beb2df01c961589a69aff47a5258ecd2 Signed-off-by: JP Abgrall <jpa@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/libf2fs.c3
-rw-r--r--lib/libf2fs_io.c1
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/libf2fs.c b/lib/libf2fs.c
index 5fd17fb..f41e8f4 100644
--- a/lib/libf2fs.c
+++ b/lib/libf2fs.c
@@ -22,7 +22,6 @@
#include <sys/mount.h>
#include <sys/ioctl.h>
#include <linux/hdreg.h>
-#include <linux/fs.h>
#include <f2fs_fs.h>
@@ -430,7 +429,7 @@ int f2fs_dev_is_umounted(struct f2fs_configuration *c)
int f2fs_get_device_info(struct f2fs_configuration *c)
{
int32_t fd = 0;
- int32_t sector_size;
+ uint32_t sector_size;
struct stat stat_buf;
struct hd_geometry geom;
diff --git a/lib/libf2fs_io.c b/lib/libf2fs_io.c
index 5f0a547..c6f175c 100644
--- a/lib/libf2fs_io.c
+++ b/lib/libf2fs_io.c
@@ -22,7 +22,6 @@
#include <sys/mount.h>
#include <sys/ioctl.h>
#include <linux/hdreg.h>
-#include <linux/fs.h>
#include <f2fs_fs.h>