git: e712521e3511 - stable/13 - libc: Fix the WITH_HESIOD build
Mark Johnston
markj at FreeBSD.org
Mon Apr 12 12:22:59 UTC 2021
The branch stable/13 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=e712521e35118b35417c93d39b6ed1c1aca77db4
commit e712521e35118b35417c93d39b6ed1c1aca77db4
Author: Mark Johnston <markj at FreeBSD.org>
AuthorDate: 2021-04-05 20:23:18 +0000
Commit: Mark Johnston <markj at FreeBSD.org>
CommitDate: 2021-04-12 12:22:53 +0000
libc: Fix the WITH_HESIOD build
Reported by: Daniel Braniss <danny at cs.huji.ac.il>
(cherry picked from commit 3b666932d409ad79c527c026abacd4d327df5b46)
---
lib/libc/gen/getgrent.c | 2 +-
lib/libc/gen/getpwent.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/libc/gen/getgrent.c b/lib/libc/gen/getgrent.c
index afb89cab308b..5832cb8c6799 100644
--- a/lib/libc/gen/getgrent.c
+++ b/lib/libc/gen/getgrent.c
@@ -971,7 +971,7 @@ dns_group(void *retval, void *mdata, va_list ap)
hes = NULL;
name = NULL;
gid = (gid_t)-1;
- how = (enum nss_lookup_type)mdata;
+ how = (enum nss_lookup_type)(uintptr_t)mdata;
switch (how) {
case nss_lt_name:
name = va_arg(ap, const char *);
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c
index a07ee109e2df..bc1d341fd3ad 100644
--- a/lib/libc/gen/getpwent.c
+++ b/lib/libc/gen/getpwent.c
@@ -1108,7 +1108,7 @@ dns_passwd(void *retval, void *mdata, va_list ap)
hes = NULL;
name = NULL;
uid = (uid_t)-1;
- how = (enum nss_lookup_type)mdata;
+ how = (enum nss_lookup_type)(uintptr_t)mdata;
switch (how) {
case nss_lt_name:
name = va_arg(ap, const char *);
More information about the dev-commits-src-all
mailing list