General spring-cleaning. Most of the code is pretty nice now.
[yaid] / addr.c
diff --git a/addr.c b/addr.c
index e72a7fd..bfbbabf 100644 (file)
--- a/addr.c
+++ b/addr.c
@@ -114,10 +114,12 @@ static const union addr any_ipv6 = { .ipv6 = IN6ADDR_ANY_INIT };
 
 /*----- General utilities -------------------------------------------------*/
 
+/* Answer whether the sockets SA and SB are equal. */
 int sockeq(const struct addrops *ao,
           const struct socket *sa, const struct socket *sb)
   { return (ao->addreq(&sa->addr, &sb->addr) && sa->port == sb->port); }
 
+/* Write a textual description of S to the string D. */
 void dputsock(dstr *d, const struct addrops *ao, const struct socket *s)
 {
   char buf[ADDRLEN];