From: Ben Pfaff Date: Fri, 18 Dec 2009 18:21:28 +0000 (-0800) Subject: ovs-brcompatd: Handle TXN_UNCHANGED status. X-Git-Tag: v1.0.0~259^2~364 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=39b78711a0ca6724347b366ea265fa569bb1937a;p=sliver-openvswitch.git ovs-brcompatd: Handle TXN_UNCHANGED status. This status was introduced several commits ago but not added to the switch statement here. Also, change the "status" variable to type enum ovsdb_idl_txn_status so that GCC will warn about future additions. --- diff --git a/vswitchd/ovs-brcompatd.c b/vswitchd/ovs-brcompatd.c index a446e7ced..ad1c84403 100644 --- a/vswitchd/ovs-brcompatd.c +++ b/vswitchd/ovs-brcompatd.c @@ -1183,7 +1183,7 @@ main(int argc, char *argv[]) for (;;) { const struct ovsrec_open_vswitch *ovs; struct ovsdb_idl_txn *txn; - int status; + enum ovsdb_idl_txn_status status; unsigned int new_idl_seqno; ovsdb_idl_run(idl); @@ -1249,6 +1249,7 @@ main(int argc, char *argv[]) ovs_fatal(0, "transaction aborted"); case TXN_SUCCESS: + case TXN_UNCHANGED: break; case TXN_TRY_AGAIN: