[ovs-dev] [PATCH] Fix extract_ofp_msgs to use HMAP_NODE_NULL_INITIALIZER instead of hard-coding {0, NULL} while creating _instances[] arrays

Sabyasachi Sengupta Sabyasachi.Sengupta at alcatel-lucent.com
Tue Oct 13 23:21:31 UTC 2015


---
  build-aux/extract-ofp-msgs |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/build-aux/extract-ofp-msgs b/build-aux/extract-ofp-msgs
index e4deecf..9dc9691 100755
--- a/build-aux/extract-ofp-msgs
+++ b/build-aux/extract-ofp-msgs
@@ -300,7 +300,7 @@ def extract_ofp_msgs(output_file_name):
          output.append("static struct raw_instance %s_instances[] = {"
                        % raw.lower())
          for hdrs in r['hdrs']:
-            output.append("    { {0, NULL}, {%d, %d, %d, 0x%x, %d}, %s, 0 },"
+            output.append("    { HMAP_NODE_NULL_INITIALIZER, {%d, %d, %d, 0x%x, %d}, %s, 0 },"
                            % (hdrs + (raw,)))

          output.append("};")
-- 
1.7.1



More information about the dev mailing list