git: 2ae58414722b - main - libsa: xdrproc_t should return bool
Toomas Soome
tsoome at FreeBSD.org
Sun Dec 27 21:28:41 UTC 2020
The branch main has been updated by tsoome:
URL: https://cgit.FreeBSD.org/src/commit/?id=2ae58414722b613f5e73be8e01602c2c9991f42a
commit 2ae58414722b613f5e73be8e01602c2c9991f42a
Author: Toomas Soome <tsoome at FreeBSD.org>
AuthorDate: 2020-12-27 21:19:41 +0000
Commit: Toomas Soome <tsoome at FreeBSD.org>
CommitDate: 2020-12-27 21:25:18 +0000
libsa: xdrproc_t should return bool
Since our xdr translation function are returning bool, so should
xdrproc_t.
Issue reported by gcc 10 build.
---
stand/libsa/zfs/nvlist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
More information about the dev-commits-src-main
mailing list