about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-07-10 07:55:29 +0000
committerEric Wong <normalperson@yhbt.net>2013-07-10 07:55:29 +0000
commit9302d584dcf68489a9c4739a3a42a468323ccda6 (patch)
treeadfb69d5fdac0ab49db86944ec139288a840e1b3
parent9897d28bb57f2aa84f91b1a8594c7ecd30be8446 (diff)
downloadcmogstored-9302d584dcf68489a9c4739a3a42a468323ccda6.tar.gz
This is somewhat strange, but makes the code base slightly easier
to reuse for non-HTTP purposes.
-rw-r--r--cmogstored.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmogstored.h b/cmogstored.h
index c12234b..f7fa022 100644
--- a/cmogstored.h
+++ b/cmogstored.h
@@ -615,6 +615,12 @@ verify(sizeof(in_port_t) <= sizeof(uint16_t));
  */
 struct mog_ni {
         char ni_host[INET6_ADDRSTRLEN + sizeof("[]") - 1];
+
+        /*
+         * we may not always be serving protocols with port numbers in them,
+         * so we embed space for the ":" in the ni_serv field to make managing
+         * syslog(3) format strings more flexible.
+         */
         char ni_serv[sizeof(":65536")];
 };