Commit 3cc54a31 authored by Kevin Corry's avatar Kevin Corry Committed by Linus Torvalds

[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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8498dc03
...@@ -417,9 +417,9 @@ static int list_devices(struct dm_ioctl *param, size_t param_size) ...@@ -417,9 +417,9 @@ static int list_devices(struct dm_ioctl *param, size_t param_size)
return 0; 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 += strlen(tt->name);
*needed += sizeof(tt->version); *needed += sizeof(tt->version);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment