summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-03-11 17:52:55 +0000
committerRoger Dingledine <arma@torproject.org>2006-03-11 17:52:55 +0000
commitc8e2a051ac62f2d29fdcd4d01ca6ea40afb105f9 (patch)
tree335fad883988bded8d80c6477c57fa510844f556
parenta7768d77fec95cfc5206e8b09945409d16eeab5c (diff)
downloadtor-c8e2a051ac62f2d29fdcd4d01ca6ea40afb105f9.tar.gz
tor-c8e2a051ac62f2d29fdcd4d01ca6ea40afb105f9.zip
huge warning sign for esc_router_info()
svn:r6124
-rw-r--r--src/or/routerlist.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index b4b35a5514..49a8142ed3 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -3792,6 +3792,14 @@ routerlist_assert_ok(routerlist_t *rl)
}
}
+/** Allocate and return a new string representing the contact info
+ * and platform string for <b>router</b>,
+ * surrounded by quotes and using standard C escapes.
+ *
+ * THIS FUNCTION IS NOT REENTRANT. Don't call it from outside the main
+ * thread. Also, each call invalidates the last-returned value, so don't
+ * try log_warn(LD_GENERAL, "%s %s", esc_router_info(a), esc_router_info(b));
+ */
const char *
esc_router_info(routerinfo_t *router)
{