From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KaCJ5-00064l-4e for qemu-devel@nongnu.org; Mon, 01 Sep 2008 12:31:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KaCJ0-00062a-HZ for qemu-devel@nongnu.org; Mon, 01 Sep 2008 12:31:10 -0400 Received: from [199.232.76.173] (port=53548 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaCJ0-00062W-9w for qemu-devel@nongnu.org; Mon, 01 Sep 2008 12:31:06 -0400 Received: from bsdimp.com ([199.45.160.85]:50404 helo=harmony.bsdimp.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KaCIy-00049m-VV for qemu-devel@nongnu.org; Mon, 01 Sep 2008 12:31:06 -0400 Date: Mon, 01 Sep 2008 10:29:20 -0600 (MDT) Message-Id: <20080901.102920.1219862731.imp@bsdimp.com> Subject: Re: [Qemu-devel] [PATCH v4 4/8] Use libuuid if available. From: "M. Warner Losh" In-Reply-To: References: <20080901072531.17854.37681.stgit@gleb-debian.qumranet.com.qumranet.com> <20080901072551.17854.10043.stgit@gleb-debian.qumranet.com.qumranet.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, andreas.faerber@web.de In message: Andreas_F=E4rber writes: : = : Am 01.09.2008 um 09:25 schrieb Gleb Natapov: : = : > diff --git a/vl.c b/vl.c : > index 6df0832..215ff7f 100644 : > --- a/vl.c : > +++ b/vl.c : > @@ -142,6 +142,11 @@ int inet_aton(const char *cp, struct in_addr = : > *ia); : > : > #include "exec-all.h" : > : > +#ifdef CONFIG_UUID : > +#include : > +static int generate_uuid; : > +#endif : > + : > #define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup" : > #define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown" : > #ifdef __sun__ : = : Does C99 ensure that generate_uuid gets initialized to zero? Afaik in= = : ANSI C it was undefined and needed an explicit assignment. ANSI C and K&R before it required it be initialized to zero. C99 has the same requirement. Warner