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

Christophe Fergeau cfergeau at redhat.com
Fri Mar 29 10:30:44 UTC 2019


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 at redhat.com>
---
 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 */
 
-- 
2.21.0



More information about the Spice-devel mailing list