qemu-trivial
[Top][All Lists]
Advanced

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

Re: [Qemu-trivial] [Qemu-devel] [PATCH v2 1/2] remove unused include of


From: Luiz Capitulino
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH v2 1/2] remove unused include of error.h
Date: Fri, 3 Aug 2012 09:53:18 -0300

On Fri,  3 Aug 2012 11:06:21 +0800
Amos Kong <address@hidden> wrote:

> Signed-off-by: Amos Kong <address@hidden>
> ---
>  qemu_socket.h |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
> 
> diff --git a/qemu_socket.h b/qemu_socket.h
> index 4689ff3..1a2f517 100644
> --- a/qemu_socket.h
> +++ b/qemu_socket.h
> @@ -27,7 +27,6 @@ int inet_aton(const char *cp, struct in_addr *ia);
>  #endif /* !_WIN32 */
>  
>  #include "qemu-option.h"
> -#include "error.h"
>  #include "qerror.h"

This is wrong. There are functions in this header that takes an Error argument
(which is declared in error.h).

qerror.h should be dropped though, as it's deprecated and as such shouldn't
be in a public header like this. If you get build failures, then you can
include it in the .c files where it's missing.

>  
>  /* misc helpers */




reply via email to

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