The branch main has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=3b666932d409ad79c527c026abacd4d327df5b46

commit 3b666932d409ad79c527c026abacd4d327df5b46
Author:     Mark Johnston <ma...@freebsd.org>
AuthorDate: 2021-04-05 20:23:18 +0000
Commit:     Mark Johnston <ma...@freebsd.org>
CommitDate: 2021-04-05 20:30:00 +0000

    libc: Fix the WITH_HESIOD build
    
    Reported by:    Daniel Braniss <da...@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 *);
_______________________________________________
dev-commits-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "dev-commits-src-all-unsubscr...@freebsd.org"

Reply via email to