From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KaB7w-0004Cz-4n for qemu-devel@nongnu.org; Mon, 01 Sep 2008 11:15:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KaB7u-0004Ck-O1 for qemu-devel@nongnu.org; Mon, 01 Sep 2008 11:15:35 -0400 Received: from [199.232.76.173] (port=60186 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaB7u-0004Ch-IS for qemu-devel@nongnu.org; Mon, 01 Sep 2008 11:15:34 -0400 Received: from dbservice.com ([213.239.204.14]:34787 helo=matterhorn.dbservice.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KaB7u-0006bm-R0 for qemu-devel@nongnu.org; Mon, 01 Sep 2008 11:15:35 -0400 Received: from [192.168.0.128] (gw.ptr-62-65-141-13.customer.ch.netstream.com [62.65.141.13]) by matterhorn.dbservice.com (Postfix) with ESMTP id B3AFE20BB3CD for ; Mon, 1 Sep 2008 17:15:21 +0200 (CEST) Message-ID: <48BC0709.7060304@dbservice.com> Date: Mon, 01 Sep 2008 17:15:21 +0200 From: Tomas Carnecky MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH v4 4/8] Use libuuid if available. References: <20080901072531.17854.37681.stgit@gleb-debian.qumranet.com.qumranet.com> <20080901072551.17854.10043.stgit@gleb-debian.qumranet.com.qumranet.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 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 F=C3=A4rber wrote: >=20 > Am 01.09.2008 um 09:25 schrieb Gleb Natapov: >=20 >> 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__ >=20 > 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 ?) tom