Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Corry <kevcorry@us.ibm.com>2004-06-04 20:57:34 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-04 20:57:34 -0700
commit3cc54a3130cb7ae649e98721c8f3f9a78b0b3294 (patch)
tree8fdf91da5d3a2521967129fc609dfdb7ba7d4e65
parent8498dc036c3e39f8fa5ca274a51c09ff5fa62b2d (diff)
[PATCH] dm: dm-ioctl.c: change an int* to a size_t*
dm-ioctl.c: Use a size_t* instead of an int* in list_version_get_needed(). size_t and int are not the same size on all architectures. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/md/dm-ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
index c699c70e825c..e1703f77c196 100644
--- a/drivers/md/dm-ioctl.c
+++ b/drivers/md/dm-ioctl.c
@@ -417,9 +417,9 @@ static int list_devices(struct dm_ioctl *param, size_t param_size)
return 0;
}
-static void list_version_get_needed(struct target_type *tt, void *param)
+static void list_version_get_needed(struct target_type *tt, void *needed_param)
{
- int *needed = param;
+ size_t *needed = needed_param;
*needed += strlen(tt->name);
*needed += sizeof(tt->version);