X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ovsdb%2Fmutation.c;h=72d7d0caf29781a52c2949cf87c0a95f8d1f84c6;hb=abaad8cf1b5089e17a4af0ab1ff644bfcf63cad9;hp=1b422806b4aae02946693cf85f4bd8d60cc425d7;hpb=bd76d25d8b3b7d11c5a326e91d784ad2cdeecd45;p=openvswitch diff --git a/ovsdb/mutation.c b/ovsdb/mutation.c index 1b422806..72d7d0ca 100644 --- a/ovsdb/mutation.c +++ b/ovsdb/mutation.c @@ -72,7 +72,7 @@ type_mismatch(const struct ovsdb_mutation *m, const struct json *json) static WARN_UNUSED_RESULT struct ovsdb_error * ovsdb_mutation_from_json(const struct ovsdb_table_schema *ts, const struct json *json, - const struct ovsdb_symbol_table *symtab, + struct ovsdb_symbol_table *symtab, struct ovsdb_mutation *m) { const struct json_array *array; @@ -164,7 +164,7 @@ ovsdb_mutation_free(struct ovsdb_mutation *m) struct ovsdb_error * ovsdb_mutation_set_from_json(const struct ovsdb_table_schema *ts, const struct json *json, - const struct ovsdb_symbol_table *symtab, + struct ovsdb_symbol_table *symtab, struct ovsdb_mutation_set *set) { const struct json_array *array = json_array(json); @@ -379,6 +379,9 @@ ovsdb_mutation_set_execute(struct ovsdb_row *row, ovsdb_datum_subtract(dst, dst_type, arg, arg_type); error = ovsdb_mutation_check_count(dst, dst_type); break; + + default: + NOT_REACHED(); } if (error) { return error;