24 lines
938 B
Text
24 lines
938 B
Text
$NetBSD: patch-ab,v 1.1 2007/11/30 20:09:36 rillig Exp $
|
|
|
|
On NetBSD, struct ifconf.ifc_buf is a void *.
|
|
|
|
--- asmtpd/synfp.C.orig 2005-10-19 23:52:26.000000000 +0000
|
|
+++ asmtpd/synfp.C 2007-11-30 20:06:43.000000000 +0000
|
|
@@ -86,7 +86,7 @@ synfp::ifnames (vec<str> *ifs, in_addr t
|
|
for (str *sp = ifs->base (); sp < ifs->lim (); sp++)
|
|
seen.insert (*sp);
|
|
|
|
- char *p = ifc.ifc_buf, *e = p + ifc.ifc_len;
|
|
+ char *p = static_cast<char *>(ifc.ifc_buf), *e = p + ifc.ifc_len;
|
|
while (p < e) {
|
|
struct ifreq *ifrp = (struct ifreq *) p;
|
|
struct ifreq ifr = *ifrp;
|
|
@@ -151,7 +151,7 @@ synfp::ifaddrs (vec<in_addr> *addrs, str
|
|
for (in_addr *ap = addrs->base (); ap < addrs->lim (); ap++)
|
|
seen.insert (*ap);
|
|
|
|
- char *p = ifc.ifc_buf, *e = p + ifc.ifc_len;
|
|
+ char *p = static_cast<char *>(ifc.ifc_buf), *e = p + ifc.ifc_len;
|
|
while (p < e) {
|
|
struct ifreq *ifrp = (struct ifreq *) p;
|
|
struct ifreq ifr = *ifrp;
|