git: 3b666932d409 - main - libc: Fix the WITH_HESIOD build
Mark Johnston
markj at FreeBSD.org
Mon Apr 5 20:30:08 UTC 2021
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=3b666932d409ad79c527c026abacd4d327df5b46
commit 3b666932d409ad79c527c026abacd4d327df5b46
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-05 20:30:00 +0000
libc: Fix the WITH_HESIOD build
Reported by: Daniel Braniss <danny at cs.huji.ac.il>
MFC after: 1 week
---
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