am bacdfc0e: Merge "Fix compiling warnings"
* commit 'bacdfc0ed9a0882ee3e9ee889a8fd4cabb9a71f3':
Fix compiling warnings
diff --git a/Devmapper.cpp b/Devmapper.cpp
index 7c11d12..6f43ac0 100644
--- a/Devmapper.cpp
+++ b/Devmapper.cpp
@@ -124,7 +124,7 @@
io->version[2] = 0;
io->flags = flags;
if (name) {
- int ret = strlcpy(io->name, name, sizeof(io->name));
+ size_t ret = strlcpy(io->name, name, sizeof(io->name));
if (ret >= sizeof(io->name))
abort();
}
diff --git a/Ext4.cpp b/Ext4.cpp
index 1466922..b82b4c5 100644
--- a/Ext4.cpp
+++ b/Ext4.cpp
@@ -32,7 +32,6 @@
#include <sys/wait.h>
#include <linux/kdev_t.h>
-#include <linux/fs.h>
#define LOG_TAG "Vold"
diff --git a/Fat.cpp b/Fat.cpp
index ac473da..807f440 100644
--- a/Fat.cpp
+++ b/Fat.cpp
@@ -32,7 +32,6 @@
#include <sys/wait.h>
#include <linux/kdev_t.h>
-#include <linux/fs.h>
#define LOG_TAG "Vold"
diff --git a/Volume.cpp b/Volume.cpp
index 0be2e81..4a00ccc 100644
--- a/Volume.cpp
+++ b/Volume.cpp
@@ -28,7 +28,6 @@
#include <sys/param.h>
#include <linux/kdev_t.h>
-#include <linux/fs.h>
#include <cutils/properties.h>
diff --git a/vdc.c b/vdc.c
index 7dad143..59f34d6 100644
--- a/vdc.c
+++ b/vdc.c
@@ -57,7 +57,7 @@
static int do_cmd(int sock, int argc, char **argv) {
char final_cmd[255] = "0 "; /* 0 is a (now required) sequence number */
int i;
- int ret;
+ size_t ret;
for (i = 1; i < argc; i++) {
char *cmp;