Skip to contentSkip to conversation

master - tools: move struct element before variable lenght list

PATCH Zdenek Kabelac 1 participant 1 message Aug 28, 2020

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b918afb693a62938e8189a5d07b13df8007ae062
Commit:        b918afb693a62938e8189a5d07b13df8007ae062
Parent:        7880896f0dbe730e7b47aa8040544434813eacc4
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Aug 28 19:15:42 2020 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Aug 28 21:43:02 2020 +0200

tools: move struct element before variable lenght list

Move prio field before 'variable' struct array field. Interesting why this has not been catched yet.

TODO: think about test case

---
 tools/tools.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/tools.h +1 -1
index c3d780d36..4b944e2fd 100644
@@ -109,8 +109,8 @@ struct arg_values {
 
 struct arg_value_group_list {
         struct dm_list list;
-        struct arg_values arg_values[0];
 	uint32_t prio;
+        struct arg_values arg_values[0];
 };
 
 #define PERMITTED_READ_ONLY 	0x00000002