diff options
author | Ben Pfaff <blp@nicira.com> | 2009-12-18 10:21:28 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2009-12-18 10:21:48 -0800 |
commit | 39b78711a0ca6724347b366ea265fa569bb1937a (patch) | |
tree | 15a1b7d652651ce312df6ec5c8278c761029f5a5 /vswitchd/ovs-brcompatd.c | |
parent | 3a2eca8dc02d02d21b464bc29d21a5ec784d6785 (diff) |
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.
Diffstat (limited to 'vswitchd/ovs-brcompatd.c')
-rw-r--r-- | vswitchd/ovs-brcompatd.c | 3 |
1 files changed, 2 insertions, 1 deletions
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: |