summaryrefslogtreecommitdiff
path: root/ovsdb
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2015-03-03 18:05:59 -0800
committerJustin Pettit <jpettit@nicira.com>2015-03-04 22:23:43 -0800
commit4946b41df20785e33a33603257d191fb4163f858 (patch)
treea6687e664b72c27588d3b7864cf0781cab18e6dd /ovsdb
parent7cde82084a4d6c4d6e6b2ca97c978561c3c96dda (diff)
downloadopenvswitch-4946b41df20785e33a33603257d191fb4163f858.tar.gz
ovsdb-idlc: Use column name for "*_set_*" smap arguments.
Signed-off-by: Justin Pettit <jpettit@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'ovsdb')
-rwxr-xr-xovsdb/ovsdb-idlc.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in
index 67e8a4e6a..55b695eb5 100755
--- a/ovsdb/ovsdb-idlc.in
+++ b/ovsdb/ovsdb-idlc.in
@@ -478,21 +478,21 @@ const struct ovsdb_datum *
if type.is_smap():
print """
void
-%(s)s_set_%(c)s(const struct %(s)s *row, const struct smap *smap)
+%(s)s_set_%(c)s(const struct %(s)s *row, const struct smap *%(c)s)
{
struct ovsdb_datum datum;
ovs_assert(inited);
- if (smap) {
+ if (%(c)s) {
struct smap_node *node;
size_t i;
- datum.n = smap_count(smap);
+ datum.n = smap_count(%(c)s);
datum.keys = xmalloc(datum.n * sizeof *datum.keys);
datum.values = xmalloc(datum.n * sizeof *datum.values);
i = 0;
- SMAP_FOR_EACH (node, smap) {
+ SMAP_FOR_EACH (node, %(c)s) {
datum.keys[i].string = xstrdup(node->key);
datum.values[i].string = xstrdup(node->value);
i++;