diff options
Diffstat (limited to 'lib/libzpool/kernel.c')
-rw-r--r-- | lib/libzpool/kernel.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/libzpool/kernel.c b/lib/libzpool/kernel.c index adbe6ba08..b64f03da4 100644 --- a/lib/libzpool/kernel.c +++ b/lib/libzpool/kernel.c @@ -33,7 +33,6 @@ #include <sys/stat.h> #include <sys/processor.h> #include <sys/zfs_context.h> -#include <sys/zmod.h> #include <sys/utsname.h> #include <sys/systeminfo.h> @@ -844,31 +843,6 @@ kernel_fini(void) urandom_fd = -1; } -int -z_uncompress(void *dst, size_t *dstlen, const void *src, size_t srclen) -{ - int ret; - uLongf len = *dstlen; - - if ((ret = uncompress(dst, &len, src, srclen)) == Z_OK) - *dstlen = (size_t)len; - - return (ret); -} - -int -z_compress_level(void *dst, size_t *dstlen, const void *src, size_t srclen, - int level) -{ - int ret; - uLongf len = *dstlen; - - if ((ret = compress2(dst, &len, src, srclen, level)) == Z_OK) - *dstlen = (size_t)len; - - return (ret); -} - uid_t crgetuid(cred_t *cr) { |