]> git.proxmox.com Git - mirror_ovs.git/commit - ovsdb/ovsdb-idlc.in
Embrace anonymous unions.
authorBen Pfaff <blp@ovn.org>
Thu, 24 May 2018 17:32:59 +0000 (10:32 -0700)
committerBen Pfaff <blp@ovn.org>
Fri, 25 May 2018 20:36:05 +0000 (13:36 -0700)
commitfa37affad362df15fc59db00aa96ee79cd5eebd9
treef539cdab21f0951aa8bb7c8b6984d9854d33112d
parent3d62892884d88cf1d0d02f58b3317e6ec0ca8971
Embrace anonymous unions.

Several OVS structs contain embedded named unions, like this:

struct {
    ...
    union {
        ...
    } u;
};

C11 standardized a feature that many compilers already implemented
anyway, where an embedded union may be unnamed, like this:

struct {
    ...
    union {
        ...
    };
};

This is more convenient because it allows the programmer to omit "u."
in many places.  OVS already used this feature in several places.  This
commit embraces it in several others.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Justin Pettit <jpettit@ovn.org>
Tested-by: Alin Gabriel Serdean <aserdean@ovn.org>
Acked-by: Alin Gabriel Serdean <aserdean@ovn.org>
38 files changed:
include/openvswitch/json.h
lib/db-ctl-base.c
lib/dpif-netdev.c
lib/dpif-netlink.c
lib/dpif.c
lib/dpif.h
lib/json.c
lib/jsonrpc.c
lib/netdev-dummy.c
lib/ovsdb-data.c
lib/ovsdb-idl.c
lib/ovsdb-parser.c
lib/ovsdb-types.c
lib/ovsdb-types.h
ofproto/ofproto-dpif-upcall.c
ofproto/ofproto.c
ovsdb/column.c
ovsdb/condition.c
ovsdb/execution.c
ovsdb/file.c
ovsdb/jsonrpc-server.c
ovsdb/log.c
ovsdb/mutation.c
ovsdb/ovsdb-client.c
ovsdb/ovsdb-idlc.in
ovsdb/ovsdb-server.c
ovsdb/ovsdb-tool.c
ovsdb/ovsdb-util.c
ovsdb/ovsdb.c
ovsdb/replication.c
ovsdb/storage.c
ovsdb/table.c
ovsdb/transaction.c
ovsdb/trigger.c
python/ovs/db/types.py
tests/test-json.c
tests/test-jsonrpc.c
tests/test-ovsdb.c