Re: [spice-common v2 6/8] test-marshallers: Fix header guard

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

 



> 
> test-marshallers.h is missing a #define _H_TEST_MARSHALLERS in order to
> prevent multiple #include for the same header.
> 
> Signed-off-by: Christophe Fergeau <cfergeau@xxxxxxxxxx>

Acked-by: Frediano Ziglio <fziglio@xxxxxxxxxx>

> ---
>  tests/test-marshallers.h | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/test-marshallers.h b/tests/test-marshallers.h
> index 4eab90f..7686067 100644
> --- a/tests/test-marshallers.h
> +++ b/tests/test-marshallers.h
> @@ -1,7 +1,8 @@
> +#ifndef H_SPICE_COMMON_TEST_MARSHALLERS
> +#define H_SPICE_COMMON_TEST_MARSHALLERS
> +
>  #include <stdint.h>
>  
> -#ifndef _H_TEST_MARSHALLERS
> -
>  typedef struct {
>      uint32_t data_size;
>      uint8_t dummy_byte;
> @@ -26,5 +27,5 @@ typedef struct {
>      uint8_t data[0];
>  } SpiceMsgMainLenMessage;
>  
> -#endif /* _H_TEST_MARSHALLERS */
> +#endif /* H_SPICE_COMMON_TEST_MARSHALLERS */
>  
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]