Add an nvlist_set_error() function that can be used to force an
nvlist into the error state. This is useful both for writing
tests and for writing APIs that use nvlists internally.
Details
Details
- Reviewers
jfv - Commits
- rS279434: Add function to force an nvlist into the error state
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
Comment Actions
Other that the minor nit above, it looks good.
lib/libnv/nvlist.c | ||
---|---|---|
144 | I'd assert that error is != 0. |