[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080916122703.GA24431@wavehammer.waldi.eu.org>
Date: Tue, 16 Sep 2008 14:27:03 +0200
From: Bastian Blank <bastian@...di.eu.org>
To: Dave Hansen <dave@...ux.vnet.ibm.com>
Cc: Oren Laadan <orenl@...columbia.edu>,
containers@...ts.linux-foundation.org, jeremy@...p.org,
linux-kernel@...r.kernel.org, arnd@...db.de
Subject: Re: [RFC v5][PATCH 2/8] General infrastructure for checkpoint
restart
On Mon, Sep 15, 2008 at 11:02:30AM -0700, Dave Hansen wrote:
> All of the casting here is unnecessary. 'void *' behaves like 'char *'
> when you do arithmetic on it.
No. Arithmetic on void pointer is not allowed by the standard. This is a
gcc extension. It's okay to be used in the Linux kernel but not in
general.
The second cast (from char * to void *) however is useless.
Bastian
--
Prepare for tomorrow -- get ready.
-- Edith Keeler, "The City On the Edge of Forever",
stardate unknown
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists