-
Committer:
Steve Langasek
-
Date:
2012-11-13 10:59:07 UTC
-
Revision ID:
steve.langasek@canonical.com-20121113105907-u5fkrwvj9y8ufc8o
error handling was added to the str_to_enum() functions solely to satisfy
the tests, when the tests don't model a real-world invocation. Drop the
extra error handling, and instead add a check that *_str_to_enum() DTRT when
called with a non-NULL string that doesn't match an enum.