/* -*-c-*-
*
- * $Id: un.c,v 1.1 1999/07/26 23:34:11 mdw Exp $
+ * $Id: un.c,v 1.2 1999/07/27 18:30:53 mdw Exp $
*
* Protocol specific definitions for Unix-domain sockets
*
/*----- Revision history --------------------------------------------------*
*
* $Log: un.c,v $
+ * Revision 1.2 1999/07/27 18:30:53 mdw
+ * Various minor portability fixes.
+ *
* Revision 1.1 1999/07/26 23:34:11 mdw
* New socket address types.
*
/*----- Header files ------------------------------------------------------*/
#include "config.h"
+#undef sun /* Cretins */
#include <ctype.h>
#include <errno.h>
d.len + 1);
ua->a.ops = &un_ops;
ua->a.sz = offsetof(struct sockaddr_un, sun_path) + d.len + 1;
+ memset(&ua->sun, 0, ua->a.sz);
ua->sun.sun_family = AF_UNIX;
memcpy(ua->sun.sun_path, d.buf, d.len + 1);
dstr_destroy(&d);