qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 25/34] qerror: qerror_table: don't use C99 struc


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH 25/34] qerror: qerror_table: don't use C99 struct initializers
Date: Thu, 02 Aug 2012 18:48:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

Luiz Capitulino <address@hidden> writes:

> This allows for changing QERR_ macros to initialize two struct members
> at the same time. See next commit for more details.
>
> Signed-off-by: Luiz Capitulino <address@hidden>
> ---
>  qerror.c | 276 
> +++++++++++++++++++++++++++++++--------------------------------
>  qerror.h |   2 +-
>  2 files changed, 139 insertions(+), 139 deletions(-)
>
> diff --git a/qerror.c b/qerror.c
> index 33b8780..664efb3 100644
> --- a/qerror.c
> +++ b/qerror.c
> @@ -44,285 +44,285 @@ static const QType qerror_type = {
>   */
>  static const QErrorStringTable qerror_table[] = {
>      {
> -        .error_fmt = QERR_ADD_CLIENT_FAILED,
> -        .desc      = "Could not add client",
> +         QERR_ADD_CLIENT_FAILED,
> +         "Could not add client",
>      },

Okay, as qerror_table[] goes away in PATCH 32 anyway.

[...]



reply via email to

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