chiark / gitweb /
debian/source/format: Apparently we need one of these.
[yaid] / addr.c
diff --git a/addr.c b/addr.c
index e72a7fd699e5abe5861bd3ea9bbd9ce980eb9bb2..bfbbabf4aef7e42b41d7570d3a1a706c068f3b86 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];