Skip to contentSkip to conversation

libxlu: avoid having two definitions of XLU_ConfigList

PATCH In review Wei Liu 3 participants 3 messages Mar 18, 2015 – Mar 19, 2015

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 libxlu: avoid having two definitions of XLU_ConfigList

There is already a typedef in libxlutil.h. Remove the one in libxlu_internal.h.

---
 tools/libxl/libxlu_internal.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/libxl/libxlu_internal.h +2 -2
index 3451cfe..0acdde3 100644
@@ -25,11 +25,11 @@
 
 #include "libxlutil.h"
 
-typedef struct XLU_ConfigList {
+struct XLU_ConfigList {
     int avalues; /* available slots */
     int nvalues; /* actual occupied slots */
     XLU_ConfigValue **values;
-} XLU_ConfigList;
+};
 
 typedef struct YYLTYPE
 {
Signature · 1 line
1.9.1
#1 lore raw
Quoted 4 lines · Wei Liu

There is already a typedef in libxlutil.h. Remove the one in libxlu_internal.h.

Missing the 'Reported-by: Konrad Rzeszutek Wilk <[email protected]>'

Quoted 25 lines
---
 tools/libxl/libxlu_internal.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/libxl/libxlu_internal.h +2 -2
index 3451cfe..0acdde3 100644
@@ -25,11 +25,11 @@
 
 #include "libxlutil.h"
 
-typedef struct XLU_ConfigList {
+struct XLU_ConfigList {
     int avalues; /* available slots */
     int nvalues; /* actual occupied slots */
     XLU_ConfigValue **values;
-} XLU_ConfigList;
+};
 
 typedef struct YYLTYPE
 {
Signature · 1 line
1.9.1
#2 lore raw
Quoted 7 lines · Konrad Rzeszutek Wilk
Quoted 4 lines · Wei Liu

There is already a typedef in libxlutil.h. Remove the one in libxlu_internal.h.

Missing the 'Reported-by: Konrad Rzeszutek Wilk <[email protected]>'

I added this and acked + applied the patch.

Ian, who is surprised newer gcc is more lenient on this matter...