From 39b78711a0ca6724347b366ea265fa569bb1937a Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 18 Dec 2009 10:21:28 -0800 Subject: [PATCH] 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. --- vswitchd/ovs-brcompatd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vswitchd/ovs-brcompatd.c b/vswitchd/ovs-brcompatd.c index a446e7ce..ad1c8440 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: -- 2.30.2