]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a couple of documentation comments related to #40094
authorNick Mathewson <nickm@torproject.org>
Tue, 8 Dec 2020 19:59:28 +0000 (14:59 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 8 Dec 2020 19:59:28 +0000 (14:59 -0500)
src/lib/fs/conffile.c
src/lib/sandbox/sandbox.c

index 1f58a3590c951a7b36b34741724d9852df11ea25..acd8dfb8cc3ae73c8b42e6aa7499214ecc2b746e 100644 (file)
@@ -53,10 +53,10 @@ config_get_lines_include(const char *string, config_line_t **result,
                               opened_lst, 1, NULL, config_process_include);
 }
 
-/** Returns a list of paths obtained when expading globs in <b>pattern</b>. If
- * <b>pattern</b> has no globs, returns a list with <b>pattern</b> if it is an
- * existing path or NULL otherwise. If <b>opened_files</b> is provided, adds
- * paths opened by glob to it. Returns NULL on failure. */
+/** Return a list of paths obtained when expading globs in <b>pattern</b>.
+ * If <b>pattern</b> has no globs, return a list with <b>pattern</b> in it.
+ * If <b>opened_files</b> is provided, add paths opened by glob to it.
+ * Return NULL on failure. */
 static smartlist_t *
 expand_glob(const char *pattern, smartlist_t *opened_files)
 {
index d9ad8ec2c68eb66922431d0d5e99315cdc6b4d62..168dfd943c631a41a97ae9ad966b70d0cc8522d9 100644 (file)
@@ -1229,7 +1229,9 @@ static sandbox_filter_func_t filter_func[] = {
 /**
  * Return the interned (and hopefully sandbox-permitted) string equal
  * to @a str.
- */
+ *
+ * Return NULL if `str` is NULL, or `str` is not an interned string.
+ **/
 const char *
 sandbox_intern_string(const char *str)
 {