aboutsummaryrefslogtreecommitdiffstats
path: root/fsck/main.c
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 /fsck/main.c
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 'fsck/main.c')
-rw-r--r--fsck/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsck/main.c b/fsck/main.c
index a0144fc..5aa3956 100644
--- a/fsck/main.c
+++ b/fsck/main.c
@@ -12,7 +12,7 @@
#include <libgen.h>
struct f2fs_fsck gfsck = {
- .sbi.fsck = &gfsck,
+ .sbi = { .fsck = &gfsck, },
};
void fsck_usage()