lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4E38B8BD.10406@gmail.com>
Date:	Wed, 03 Aug 2011 10:55:57 +0800
From:	Wang Sheng-Hui <shhuiw@...il.com>
To:	Américo Wang <xiyou.wangcong@...il.com>
CC:	Li Zefan <lizf@...fujitsu.com>, Theodore Ts'o <tytso@....edu>,
	Jan Kara <jack@...e.cz>, linux-ext4@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] jbd/jbd2: add pointer type conversion on void *arg from
 void * to journal_t * explicitly in kjournald/kjournald2

On 2011年08月03日 10:52, Américo Wang wrote:
> On Wed, Aug 3, 2011 at 10:17 AM, Wang Sheng-Hui <shhuiw@...il.com> wrote:
>>
>> I remember any * can be assigned directly to void * in ANSI C, but
>> void * should be converted to specific point * type. Right?
>>
> 
> C99 6.3.2.3

Got it. Thanks,

> 
> A pointer to void may be converted to or from a pointer to any
> incomplete or object
> type. A pointer to any incomplete or object type may be converted to a
> pointer to void
> and back again; the result shall compare equal to the original pointer.

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

Powered by Openwall GNU/*/Linux Powered by OpenVZ