summaryrefslogtreecommitdiffstats
path: root/Devmapper.cpp
diff options
context:
space:
mode:
authorChih-Wei Huang <cwhuang@linux.org.tw>2013-02-10 22:57:14 +0800
committerChih-Wei Huang <cwhuang@android-x86.org>2013-02-10 23:34:36 +0800
commit7929deb206d8c04801deb4a26232f83a55e6fd32 (patch)
treee66444b56fbdd1b2fdde1c1663df445d715bf0ba /Devmapper.cpp
parentb1596afa59c7108cc6ce23bab54a1bc41961806a (diff)
downloadandroid_system_vold-7929deb206d8c04801deb4a26232f83a55e6fd32.tar.gz
android_system_vold-7929deb206d8c04801deb4a26232f83a55e6fd32.tar.bz2
android_system_vold-7929deb206d8c04801deb4a26232f83a55e6fd32.zip
Fix compiling warnings
The patch removes the following warnings: system/vold/vdc.c: In function 'do_cmd': system/vold/vdc.c:71:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] [...] In file included from system/vold/Fat.cpp:34:0: bionic/libc/kernel/common/linux/fs.h:109:0: warning: "MS_RMT_MASK" redefined [enabled by default] In file included from system/vold/Fat.cpp:31:0: bionic/libc/include/sys/mount.h:64:0: note: this is the location of the previous definition [...] Change-Id: I1e950dcec87f8bae0cec61a1611126b3abc0c90e
Diffstat (limited to 'Devmapper.cpp')
-rw-r--r--Devmapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Devmapper.cpp b/Devmapper.cpp
index 7c11d12..6f43ac0 100644
--- a/Devmapper.cpp
+++ b/Devmapper.cpp
@@ -124,7 +124,7 @@ void Devmapper::ioctlInit(struct dm_ioctl *io, size_t dataSize,
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();
}