summaryrefslogtreecommitdiff
path: root/src/common/confline.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-06 08:53:26 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-06 11:48:41 -0400
commit5567a80caad0586b5d15db388339be4d276de136 (patch)
tree5ac391bd26617840bf70c82b501bcce02da9d8c3 /src/common/confline.c
parent89b673f24bf17bead40eb169cf0ef3d3969bb492 (diff)
downloadtor-5567a80caad0586b5d15db388339be4d276de136.tar.gz
tor-5567a80caad0586b5d15db388339be4d276de136.zip
Explain config_line_find() behavior on duplicates.
Diffstat (limited to 'src/common/confline.c')
-rw-r--r--src/common/confline.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common/confline.c b/src/common/confline.c
index 6ec3b619dc..36f4c875f3 100644
--- a/src/common/confline.c
+++ b/src/common/confline.c
@@ -30,9 +30,11 @@ config_line_append(config_line_t **lst,
(*lst) = newline;
}
-/** Return the line in <b>lines</b> whose key is exactly <b>key</b>, or NULL
- * if no such key exists. For handling commandline-only options only; other
- * options should be looked up in the appropriate data structure. */
+/** Return the first line in <b>lines</b> whose key is exactly <b>key</b>, or
+ * NULL if no such key exists.
+ *
+ * (In options parsing, this is for handling commandline-only options only;
+ * other options should be looked up in the appropriate data structure.) */
const config_line_t *
config_line_find(const config_line_t *lines,
const char *key)