libc: Fix the WITH_HESIOD build
Reported by: Daniel Braniss <danny@cs.huji.ac.il> MFC after: 1 week
This commit is contained in:
parent
20a52706c8
commit
3b666932d4
@ -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 *);
|
||||
|
@ -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 *);
|
||||
|
Loading…
Reference in New Issue
Block a user