* [PATCH] DM: dm-ioctl.c: change an int* to a size_t*
@ 2004-06-03 14:54 Kevin Corry
0 siblings, 0 replies; only message in thread
From: Kevin Corry @ 2004-06-03 14:54 UTC (permalink / raw)
To: Andrew Morton; +Cc: DevMapper, LKML
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.
--- diff/drivers/md/dm-ioctl.c 2004-06-03 09:46:39.000000000 -0500
+++ source/drivers/md/dm-ioctl.c 2004-06-03 09:48:40.000000000 -0500
@@ -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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-06-03 15:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-03 14:54 [PATCH] DM: dm-ioctl.c: change an int* to a size_t* Kevin Corry
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®