diff options
author | Simon Horman <horms@verge.net.au> | 2011-11-14 17:41:28 +0900 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-11-14 09:17:15 -0800 |
commit | 4895c7016139e2e59c17b1d9c39aa3eca90399da (patch) | |
tree | d178db6a2c399413d50b6aaa6bac9689a09dd89c /include | |
parent | 279320b8276011df3667478de6750d5a40d0c6eb (diff) |
Make unixctl_command_register() idempotent
The assert() statement in unixctl_command_register() implies that it is
intended to be idempotent but inserting the same name and callback twice
would fail because:
* The callback is not stored directly in the hash, rather it the
cb element of a struct unixctl_command which is stored in the hash.
* Insertion would be attempted even if the entry was already present.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions