All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v4 4/8] Use libuuid if available.
Date: Mon, 01 Sep 2008 17:50:23 +0200	[thread overview]
Message-ID: <jetzcz3lxc.fsf@sykes.suse.de> (raw)
In-Reply-To: <F5D7F2E4-F67F-408F-884F-0CDBDC4EA739@web.de> ("Andreas Färber"'s message of "Mon, 1 Sep 2008 16:49:06 +0200")

Andreas Färber <andreas.faerber@web.de> 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 <uuid/uuid.h>
>> +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.

Static variables are initialized to zero almost since the beginning of
C.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

  parent reply	other threads:[~2008-09-01 15:50 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-01  7:25 [Qemu-devel] [PATCH v4 0/8] Add new firmware configuration mechanism Gleb Natapov
2008-09-01  7:25 ` [Qemu-devel] [PATCH v4 1/8] Key/value based qemu<->guest firmware communication mechanism Gleb Natapov
2008-09-01  7:44   ` Gleb Natapov
2008-09-01  7:25 ` [Qemu-devel] [PATCH v4 2/8] Add -uuid command line option Gleb Natapov
2008-09-01  7:25 ` [Qemu-devel] [PATCH v4 3/8] Add "info uuid" command to monitor Gleb Natapov
2008-09-01  7:25 ` [Qemu-devel] [PATCH v4 4/8] Use libuuid if available Gleb Natapov
2008-09-01 14:25   ` Blue Swirl
2008-09-01 14:49   ` Andreas Färber
2008-09-01 15:15     ` Tomas Carnecky
2008-09-01 16:29       ` M. Warner Losh
2008-09-01 15:30     ` Jamie Lokier
2008-09-01 16:32       ` Andreas Färber
2008-09-01 15:50     ` Andreas Schwab [this message]
2008-09-01 16:29     ` M. Warner Losh
2008-09-01  7:25 ` [Qemu-devel] [PATCH v4 5/8] Add UUID to firmware configuration info Gleb Natapov
2008-09-01  7:26 ` [Qemu-devel] [PATCH v4 6/8] Pass cpu speed into SM BIOS Gleb Natapov
2008-09-01  7:46   ` Gleb Natapov
2008-09-01  7:26 ` [Qemu-devel] [PATCH v4 7/8] Add common keys to firmware configuration Gleb Natapov
2008-09-01  7:26 ` [Qemu-devel] [PATCH v4 8/8] Add sparc " Gleb Natapov

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=jetzcz3lxc.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.