if (error)
return (error);
}
- unp = zalloc(unp_zone);
+ unp = (struct unpcb*)zalloc(unp_zone);
if (unp == NULL)
return (ENOBUFS);
bzero(unp, sizeof *unp);
}
if (unp->unp_addr)
FREE(unp->unp_addr, M_SONAME);
- zfree(unp_zone, unp);
+ zfree(unp_zone, (vm_offset_t)unp);
}
static int
if (unp->unp_vnode != NULL)
return (EINVAL);
-#define offsetof(s, e) ((char *)&((s *)0)->e - (char *)((s *)0))
namelen = soun->sun_len - offsetof(struct sockaddr_un, sun_path);
if (namelen <= 0)
return EINVAL;
so->so_pcb = (caddr_t) 0;
if (unp->unp_addr)
FREE(unp->unp_addr, M_SONAME);
- zfree(unp_zone, unp);
+ zfree(unp_zone, (vm_offset_t)unp);
sofree(so);
}
}