mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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: [PATCH] DM: dm-ioctl.c: change an int* to a size_t*
Date: Thu, 3 Jun 2004 09:54:41 -0500	[thread overview]
Message-ID: <200406030954.42045.kevcorry@us.ibm.com> (raw)

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);

                 reply	other threads:[~2004-06-03 15:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200406030954.42045.kevcorry@us.ibm.com \
    --to=kevcorry@us.ibm.com \
    --cc=akpm@osdl.org \
    --cc=dm-devel@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®