libc: Fix the WITH_HESIOD build

Reported by:	Daniel Braniss <danny@cs.huji.ac.il>
MFC after:	1 week
This commit is contained in:
Mark Johnston 2021-04-05 16:23:18 -04:00
parent 20a52706c8
commit 3b666932d4
2 changed files with 2 additions and 2 deletions

View File

@ -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 *);

View File

@ -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 *);