From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KaCJ1-000631-LN for qemu-devel@nongnu.org; Mon, 01 Sep 2008 12:31:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KaCIs-0005zq-Uy for qemu-devel@nongnu.org; Mon, 01 Sep 2008 12:31:07 -0400 Received: from [199.232.76.173] (port=53545 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaCIs-0005zj-QF for qemu-devel@nongnu.org; Mon, 01 Sep 2008 12:30:58 -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 1KaCIp-00049m-HD for qemu-devel@nongnu.org; Mon, 01 Sep 2008 12:30:58 -0400 Date: Mon, 01 Sep 2008 10:29:43 -0600 (MDT) Message-Id: <20080901.102943.794484831.imp@bsdimp.com> Subject: Re: [Qemu-devel] [PATCH v4 4/8] Use libuuid if available. From: "M. Warner Losh" In-Reply-To: <48BC0709.7060304@dbservice.com> References: <20080901072551.17854.10043.stgit@gleb-debian.qumranet.com.qumranet.com> <48BC0709.7060304@dbservice.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, tom@dbservice.com In message: <48BC0709.7060304@dbservice.com> Tomas Carnecky writes: : Andreas F=E4rber wrote: : > = : > 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. : = : Newer C standards certainly do (post C89 ?) *ALL* versions of C do. Warner