dstr d = DSTR_INIT;
un_addr *ua;
- conf_name(sc, '/', &d);
+ conf_fname(sc, &d);
ua = xmalloc(sizeof(addr) +
offsetof(struct sockaddr_un, sun_path) +
d.len + 1);
{
char buf[PATH_MAX + sizeof(struct sockaddr)];
struct sockaddr_un *sun = (struct sockaddr_un *)buf;
- size_t sunsz = sizeof(buf);
+ socklen_t sunsz = sizeof(buf);
if ((nfd = accept(fd, (struct sockaddr *)sun, &sunsz)) < 0)
return (0);