diff options
author | Toomas Soome <tsoome@FreeBSD.org> | 2020-12-27 21:19:41 +0000 |
---|---|---|
committer | Toomas Soome <tsoome@FreeBSD.org> | 2020-12-27 21:25:18 +0000 |
commit | 2ae58414722b613f5e73be8e01602c2c9991f42a (patch) | |
tree | 8c049b45d5cd78007acdfa9c4e58be1103e4effa | |
parent | abd7ded451c0ddda2188b31826dc911cd22da9db (diff) | |
download | src-2ae58414722b613f5e73be8e01602c2c9991f42a.tar.gz src-2ae58414722b613f5e73be8e01602c2c9991f42a.zip |
libsa: xdrproc_t should return bool
Since our xdr translation function are returning bool, so should
xdrproc_t.
Issue reported by gcc 10 build.
-rw-r--r-- | stand/libsa/zfs/nvlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/libsa/zfs/nvlist.c b/stand/libsa/zfs/nvlist.c index e5c9eb5c4e82..ba994f97d40a 100644 --- a/stand/libsa/zfs/nvlist.c +++ b/stand/libsa/zfs/nvlist.c @@ -56,7 +56,7 @@ static bool nvlist_size_native(xdr_t *, size_t *); static bool xdr_int(xdr_t *, int *); static bool xdr_u_int(xdr_t *, unsigned *); -typedef int (*xdrproc_t)(xdr_t *, void *); +typedef bool (*xdrproc_t)(xdr_t *, void *); /* Basic primitives for XDR translation operations, getint and putint. */ static int |