Date: Sat, 3 Apr 2021 09:18:29 +0300 From: Daniel Braniss <danny@cs.huji.ac.il> To: freebsd-stable@freebsd.org Subject: current make world brakes if HESIOD enabled Message-ID: <B6F89613-2CC5-4921-B425-0DC19F03D572@cs.huji.ac.il>
next in thread | raw e-mail | index | archive | help
I must be the last person on earth to use Hesiod :-) this are the diffs: diff --git a/lib/libc/gen/getgrent.c b/lib/libc/gen/getgrent.c index afb89cab3..5832cb8c6 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 a07ee109e..bc1d341fd 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 *);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B6F89613-2CC5-4921-B425-0DC19F03D572>