Skip to content

Commit f90ee0c

Browse files
tchardingtonyhutter
authored andcommitted
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 <behlendorf1@llnl.gov> Signed-off-by: Tobin C. Harding <me@tobin.cc> Closes #6754
1 parent 4ed955e commit f90ee0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/libzfs/libzfs_import.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2297,7 +2297,7 @@ find_aux(zpool_handle_t *zhp, void *data)
22972297

22982298
/*
22992299
* Determines if the pool is in use. If so, it returns true and the state of
2300-
* the pool as well as the name of the pool. Both strings are allocated and
2300+
* the pool as well as the name of the pool. Name string is allocated and
23012301
* must be freed by the caller.
23022302
*/
23032303
int

0 commit comments

Comments
 (0)