diff options
author | Roger Dingledine <arma@torproject.org> | 2005-09-20 19:50:43 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-09-20 19:50:43 +0000 |
commit | 94ff09af23d33c29167455a66d93b5e3058b6e19 (patch) | |
tree | d9893d92fba5aba68020ef7e22b84cce01ce8577 | |
parent | fbedb32ee11706b990bc3c2e5ef3e969a8866c8d (diff) | |
download | tor-94ff09af23d33c29167455a66d93b5e3058b6e19.tar.gz tor-94ff09af23d33c29167455a66d93b5e3058b6e19.zip |
clean up a bit more code
svn:r5098
-rw-r--r-- | src/or/routerparse.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 58342d3df2..9c9196abf0 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -259,8 +259,8 @@ router_append_dirobj_signature(char *buf, size_t buf_len, const char *digest, * (versionlist is a comma-separated list of version strings, * optionally prefixed with "Tor". Versions that can't be parsed are * ignored.) */ -/* static */ int is_obsolete_version(const char *myversion, - const char *versionlist) { +/* static */ int +is_obsolete_version(const char *myversion, const char *versionlist) { const char *vl; tor_version_t mine, other; int found_newer = 0, found_newer_in_series = 0, found_any_in_series = 0, @@ -270,7 +270,8 @@ router_append_dirobj_signature(char *buf, size_t buf_len, const char *digest, vl = versionlist; - log_fn(LOG_DEBUG,"Checking whether version '%s' is in '%s'", myversion, versionlist); + log_fn(LOG_DEBUG,"Checking whether version '%s' is in '%s'", + myversion, versionlist); if (tor_version_parse(myversion, &mine)) { log_fn(LOG_ERR, "I couldn't parse my own version (%s)", myversion); @@ -308,7 +309,7 @@ router_append_dirobj_signature(char *buf, size_t buf_len, const char *digest, /* We belong to a series with recommended members, and we are newer than * any recommended member. We're probably okay. */ if (!warned_too_new) { - log(LOG_WARN, "This version of Tor (%s) is newer than any in the same series on the recommended list (%s)", + log(LOG_WARN, "This version of Tor (%s) is newer than any in the same series on the recommended list (%s).", myversion, versionlist); warned_too_new = 1; } @@ -326,7 +327,7 @@ router_append_dirobj_signature(char *buf, size_t buf_len, const char *digest, /* We belong to a series with no recommended members, and it's * newer than any recommended series. We're probably okay. */ if (!warned_too_new) { - log(LOG_WARN, "This version of Tor (%s) is newer than any on the recommended list (%s)", + log(LOG_WARN, "This version of Tor (%s) is newer than any on the recommended list (%s).", myversion, versionlist); warned_too_new = 1; } |