From: Dave Dodge <dododge@dododge.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev compile problem: udevd
Date: Mon, 20 Dec 2004 23:29:57 +0000 [thread overview]
Message-ID: <20041220232957.GB10962@basmati> (raw)
In-Reply-To: <41C70E8B.5030506@2wire.ch>
On Mon, Dec 20, 2004 at 09:17:39PM +0100, Kay Sievers wrote:
> A variable sized array is not a pointer! You will get a different
> sizeof(), which may cause problems.
Beware that gcc does not conform to C99 in regards to the size of a
structure containing a flexible array. For example:
struct foo{ int i; char c; char arr[]; };
gcc-3.4.2/i386 reports sizeof(struct foo) as 8 and offsetof(struct foo,arr)
as 5; but C99 requires those values to be the same. More here:
http://gcc.gnu.org/gcc-3.4/c99status.html
http://gcc.gnu.org/ml/gcc/2002-05/msg02844.html
-Dave Dodge
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2004-12-20 23:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-20 17:40 udev compile problem: udevd Thomas Strösslin
2004-12-20 20:17 ` Kay Sievers
2004-12-20 23:29 ` Dave Dodge [this message]
2004-12-21 1:33 ` Kay Sievers
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=20041220232957.GB10962@basmati \
--to=dododge@dododge.net \
--cc=linux-hotplug@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;
as well as URLs for NNTP newsgroup(s).