Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
f7adf365
Commit
f7adf365
authored
Oct 19, 2020
by
Nick Mathewson
🐕
Browse files
Simplify logic to use smartlist_add_asprintf()
parent
151d446a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/feature/dirclient/dirclient.c
View file @
f7adf365
...
...
@@ -1995,9 +1995,8 @@ dirclient_dump_total_dls(void)
if
(
options
->
SafeLogging_
!=
SAFELOG_SCRUB_NONE
&&
purpose_needs_anonymity
(
i
,
ROUTER_PURPOSE_GENERAL
,
NULL
))
continue
;
char
*
line
=
NULL
;
tor_asprintf
(
&
line
,
"%"
PRIu64
" (%s)"
,
n
,
dir_conn_purpose_to_string
(
i
));
smartlist_add
(
lines
,
line
);
smartlist_add_asprintf
(
lines
,
"%"
PRIu64
" (%s)"
,
n
,
dir_conn_purpose_to_string
(
i
));
}
if
(
smartlist_len
(
lines
)
>
0
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment