Skip to contentSkip to conversation

DM: dm-ioctl.c: change an int* to a size_t*

PATCH New Kevin Corry 1 participant 1 message Jun 3, 2004 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

drivers/md/dm-ioctl.c +2 -2
@@ -417,9 +417,9 @@
 	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);