[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[dm-devel] [PATCH] DM: dm-ioctl.c: change an int* to a size_t*
- From: Kevin Corry <kevcorry us ibm com>
- To: Andrew Morton <akpm osdl org>
- Cc: DevMapper <dm-devel redhat com>, LKML <linux-kernel vger kernel org>
- Subject: [dm-devel] [PATCH] DM: dm-ioctl.c: change an int* to a size_t*
- Date: Fri, 16 Jul 2004 03:54:54 -0000
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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo vger kernel org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]