qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 3/9] qmisc: Introduce qobject_from_va()


From: Paolo Bonzini
Subject: [Qemu-devel] Re: [PATCH 3/9] qmisc: Introduce qobject_from_va()
Date: Wed, 14 Oct 2009 16:27:30 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-2.7.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4


+QObject *qobject_from_va(const char *format, va_list va)
+{
+    va_list lva;
+    QObject *obj;
+    const char *fmt = format;
+
+    va_copy(lva, va);


Why copy?  Just curious...

  Because I'm using va_arg(), not sure if matters though.

No, you do not need that. The va_arg will be destructive, but anyway you're not going to do more than one pass on the va_list.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]