From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 20 Dec 2004 20:17:39 +0000 Subject: Re: udev compile problem: udevd Message-Id: <1103573859.5435.52.camel@localhost.localdomain> List-Id: References: <41C70E8B.5030506@2wire.ch> In-Reply-To: <41C70E8B.5030506@2wire.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Mon, 2004-12-20 at 18:40 +0100, Thomas Str=C3=B6sslin wrote: > Hi, >=20 > I failed to compile udev-050. > in udevd.h, the structure hotplug_msg{} contains: >=20 > char envbuf[]; >=20 > This does not compile on my system (SuSE 7.3, gcc 2.95.3) >=20 > It does compile if you replace "envbuf[]" with "*envbuf" A variable sized array is not a pointer! You will get a different sizeof(), which may cause problems. Kay ------------------------------------------------------- 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.=20 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