chan.c (chan_open): Actually initialize the error indicator.
[fwd] / un.c
diff --git a/un.c b/un.c
index c0e62ca..1ee5363 100644 (file)
--- a/un.c
+++ b/un.c
@@ -47,7 +47,7 @@ static addr *un_read(scanner *sc, unsigned type)
   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);
@@ -119,7 +119,7 @@ static reffd *un_accept(int fd, addr_opts *ao, const char *desc)
   {
     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);