ovs-vsctl: Make parsing functions return error instead of aborting.
authorBen Pfaff <blp@nicira.com>
Wed, 27 Jan 2010 19:25:20 +0000 (11:25 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 27 Jan 2010 21:51:52 +0000 (13:51 -0800)
commit1bc6ff291822a37ac95659f347e8edba125cd09c
tree3f09540cc81acc739cbef9b25ec1a8e79be155a4
parentc611c9d011111eeb2767faa1e8f02958fd36aeac
ovs-vsctl: Make parsing functions return error instead of aborting.

The upcoming "remove" command for ovs-vsctl wants to try parsing an
argument two different ways.  This doesn't work if a parse error always
aborts immediately.  This commit fixes the problem, by making a parsing
failure pass up an error for higher layers to deal with instead of aborting
immediately.

This commit should have no user-visible effect.
lib/ovsdb-data.c
lib/ovsdb-data.h
utilities/ovs-vsctl.c