diff options
author | Chris Dunlap <[email protected]> | 2015-01-14 16:31:21 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-01-30 14:46:44 -0800 |
commit | 2c41df5bf8327f3bc6ee25cf2aa570bb159cb348 (patch) | |
tree | cf19be0b397e991f142a2e685c162b509c504dba /include/libzfs_impl.h | |
parent | 854f30a91fc6a2accc6bf49cb7fcc52b498fda2a (diff) |
Cleanup _zed_event_add_nvpair()
When _zed_event_add_var() was updated to be the common routine
for adding zedlet environment variables, an additional snprintf()
was added to the processing of each nvpair. This commit changes
_zed_event_add_nvpair() to directly call _zed_event_add_var()
for nvpair non-array types, thereby removing a superfluous call to
snprintf(). For consistency, the helper functions for converting
nvpair array types are similarly adjusted to add variables.
The _zed_event_value_is_hex() and _zed_event_add_var() functions have
been moved up in the file since forward declarations are not used,
but no changes have been made to these functions.
Signed-off-by: Chris Dunlap <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #3042
Diffstat (limited to 'include/libzfs_impl.h')
0 files changed, 0 insertions, 0 deletions