aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-03-29 03:46:29 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-03-29 03:46:29 +0200
commit355ecaed47092566657f4c7004724aad17b9d006 (patch)
tree783dbbc01175a9582fdb9ff6fd652727ab9a1976
parent012930675eb0c540e8417653581008e90e7b4ab3 (diff)
downloadxK-355ecaed47092566657f4c7004724aad17b9d006.tar.gz
xK-355ecaed47092566657f4c7004724aad17b9d006.tar.xz
xK-355ecaed47092566657f4c7004724aad17b9d006.zip
Update comments
-rw-r--r--zyklonb.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/zyklonb.c b/zyklonb.c
index 8785095..5426604 100644
--- a/zyklonb.c
+++ b/zyklonb.c
@@ -360,8 +360,6 @@ irc_establish_connection (struct bot_context *ctx,
{
struct addrinfo gai_hints, *gai_result, *gai_iter;
memset (&gai_hints, 0, sizeof gai_hints);
-
- // We definitely want TCP.
gai_hints.ai_socktype = SOCK_STREAM;
int err = getaddrinfo (host, port, &gai_hints, &gai_result);
@@ -666,7 +664,8 @@ setup_recovery_handler (struct bot_context *ctx)
// get ident'ed against. In the latter version, it forms a pair with the
// password field and doesn't need to be an actual user on your machine.
-// TODO: make a non-blocking poller-based version of this; we need c-ares
+// TODO: make a non-blocking poller-based version of this;
+// either use c-ares or (even better) start another thread to do resolution
struct socks_addr
{
@@ -1160,7 +1159,7 @@ plugin_queue_write (struct plugin_data *plugin)
if (plugin->is_zombie)
return;
- // Don't let the write buffer grow infinitely. If there's a ton of data
+ // Don't let the write buffer grow indefinitely. If there's a ton of data
// waiting to be processed by the plugin, it usually means there's something
// wrong with it (such as someone stopping the process).
if (plugin->write_buffer.len >= (1 << 20))