summaryrefslogtreecommitdiff
path: root/src/or/policies.c
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2018-05-10 16:33:08 +0300
committerrl1987 <rl1987@sdf.lonestar.org>2018-05-10 16:33:08 +0300
commit8ad97b7dcf143fc488422f9866613fea3d900119 (patch)
treea020a6c974570326927704de6dff3725a5e17e89 /src/or/policies.c
parent36f7d0a940bbe8695d5343fccc1a0560a529883a (diff)
downloadtor-8ad97b7dcf143fc488422f9866613fea3d900119.tar.gz
tor-8ad97b7dcf143fc488422f9866613fea3d900119.zip
Avoid confusion with errno from libc
Diffstat (limited to 'src/or/policies.c')
-rw-r--r--src/or/policies.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/policies.c b/src/or/policies.c
index 4d47985ec5..1210ca687d 100644
--- a/src/or/policies.c
+++ b/src/or/policies.c
@@ -3003,7 +3003,7 @@ getinfo_helper_policies(control_connection_t *conn,
const routerinfo_t *me = router_get_my_routerinfo_with_err(&err);
if (!me) {
- *errmsg = routerinfo_errno_to_string(err);
+ *errmsg = routerinfo_err_to_string(err);
return routerinfo_err_is_transient(err) ? -1 : 0;
}
@@ -3046,7 +3046,7 @@ getinfo_helper_policies(control_connection_t *conn,
const routerinfo_t *me = router_get_my_routerinfo_with_err(&err);
if (!me) {
- *errmsg = routerinfo_errno_to_string(err);
+ *errmsg = routerinfo_err_to_string(err);
return routerinfo_err_is_transient(err) ? -1 : 0;
}