summaryrefslogtreecommitdiffstats
path: root/lib/libzfs
diff options
context:
space:
mode:
authorTobin Harding <[email protected]>2017-10-14 06:42:04 +1100
committerBrian Behlendorf <[email protected]>2017-10-13 12:42:04 -0700
commitc616dcf8bc3b2cb2dddc9b8f8bc64f307c9fb938 (patch)
tree27bad33f5086ddf09be6b88129457d147bbf2af7 /lib/libzfs
parentaea899a6fabbd8d0daf25a23ba114804b022529b (diff)
Fix function documentation to correctly mirror code
Currently the function documentation states that two strings are allocated, this is outdated. Only one char ** parameter is passed into the function now, clearly only a pointer to a single string is returned and needs to be free'd. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Tobin C. Harding <[email protected]> Closes #6754
Diffstat (limited to 'lib/libzfs')
-rw-r--r--lib/libzfs/libzfs_import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzfs/libzfs_import.c b/lib/libzfs/libzfs_import.c
index 833568356..e1af795b6 100644
--- a/lib/libzfs/libzfs_import.c
+++ b/lib/libzfs/libzfs_import.c
@@ -2296,7 +2296,7 @@ find_aux(zpool_handle_t *zhp, void *data)
/*
* Determines if the pool is in use. If so, it returns true and the state of
- * the pool as well as the name of the pool. Both strings are allocated and
+ * the pool as well as the name of the pool. Name string is allocated and
* must be freed by the caller.
*/
int