aboutsummaryrefslogtreecommitdiffstats
path: root/include/libzfs.h
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-04-15 00:00:02 +0200
committerBrian Behlendorf <[email protected]>2022-05-18 12:52:10 -0700
commit2b4f2fc93c4298415c5bc70554514c3e8892e5d5 (patch)
tree6dacd72befb51adf0f0fc500b42ad0fe9edebf83 /include/libzfs.h
parent38f4d99f769efbb472ab3c35558700163e4f023c (diff)
libzfs: return (allocated) strings instead of filling buffers
This also expands the zfs version output from 127 characters to However Many Are Actually Set Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13330
Diffstat (limited to 'include/libzfs.h')
-rw-r--r--include/libzfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libzfs.h b/include/libzfs.h
index 46cb60520..2c2aa3faf 100644
--- a/include/libzfs.h
+++ b/include/libzfs.h
@@ -914,8 +914,8 @@ _LIBZFS_H int libzfs_envvar_is_set(char *);
/*
* Utility functions for zfs version
*/
-_LIBZFS_H void zfs_version_userland(char *, int);
-_LIBZFS_H int zfs_version_kernel(char *, int);
+_LIBZFS_H const char *zfs_version_userland(void);
+_LIBZFS_H char *zfs_version_kernel(void);
_LIBZFS_H int zfs_version_print(void);
/*