]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Fix function documentation to correctly mirror code
authorTobin Harding <me@tobin.cc>
Fri, 13 Oct 2017 19:42:04 +0000 (06:42 +1100)
committerTony Hutter <hutter2@llnl.gov>
Tue, 17 Oct 2017 23:49:14 +0000 (16:49 -0700)
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

lib/libzfs/libzfs_import.c

index f371d925bc59c4223089260bcb482fdc0700035b..8b52224758da034401995b5e5aad527ac3ca35c2 100644 (file)
@@ -2297,7 +2297,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