]> git.proxmox.com Git - mirror_ovs.git/commit
ovsdb: Remove duplicated function defintions
authorYi-Hung Wei <yihung.wei@gmail.com>
Tue, 21 Apr 2020 22:09:05 +0000 (15:09 -0700)
committerWilliam Tu <u9012063@gmail.com>
Mon, 27 Apr 2020 15:40:43 +0000 (08:40 -0700)
commitffc0c87393012402e4647c07cc848f68aee7faf9
tree83391e6e34855fc86c7cafec3b59101043276c8d
parent3738d9298fe788409f732f8e111ffcd204070da3
ovsdb: Remove duplicated function defintions

ovsdb_function_from_string() and ovsdb_function_to_string() are defined
both in ovsdb/condition.c and lib/ovsdb-condidtion.c with the same function
definition.  Remove the one in ovsdb/condition.c to avoid duplication.

This also resolves the following bazel building error.

./libopenvswitch.lo(ovsdb-condition.pic.o): In function `ovsdb_function_from_string':
/lib/ovsdb-condition.c:24: multiple definition of `ovsdb_function_from_string'
./libovsdb.a(condition.pic.o):/proc/self/cwd/external/openvswitch_repo/ovsdb/condition.c:34: first defined here
./libopenvswitch.lo(ovsdb-condition.pic.o): In function `ovsdb_function_from_string':
./lib/ovsdb-condition.c:24: multiple definition of `ovsdb_function_to_string'
./libovsdb.a(condition.pic.o):/proc/self/cwd/external/openvswitch_repo/ovsdb/condition.c:335

Reported-by: Harold Lim <haroldl@vmware.com>
Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: William Tu <u9012063@gmail.com>
ovsdb/condition.c