X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmemcached.c;h=765a0fd3bcd501294abd2e23b02eb6a22365c34f;hb=c76419c0cf983f1ecd3d36aa236cc4e3f9cff733;hp=46c8df409eb9bc5306fcd1f68df90be1f581dc19;hpb=233d5c822ab04da98221b9ff762e8557ace026aa;p=collectd.git
diff --git a/src/memcached.c b/src/memcached.c
index 46c8df40..765a0fd3 100644
--- a/src/memcached.c
+++ b/src/memcached.c
@@ -532,14 +532,15 @@ static int memcached_add_read_callback (memcached_t *st)
(st->name != NULL) ? st->name : "__legacy__");
/* If no
used then:
- * - connect to destination, specified by , if it presents.
- * - Keep default hostname, if any:
- * - Legacy mode is used (no configuration options at all);
- * - "Host" option is not provided;
+ * - Connect to the destination specified by , if present.
+ * If not, use the default address.
+ * - Use the default hostname (set st->host to NULL), if
+ * - Legacy mode is used (no configuration options at all), or
+ * - "Host" option is not provided, or
* - "Host" option is set to "localhost" or "127.0.0.1".
*
- * If used then host may be set to "localhost"
- * or "127.0.0.1" explicitly.
+ * If used then host may be set to "localhost" or "127.0.0.1"
+ * explicitly.
*/
if (st->connhost == NULL)
{