summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2012-03-28 15:02:15 +0200
committerSebastian Hahn <sebastian@torproject.org>2012-03-28 15:02:15 +0200
commit77bc1b803e0d58b23ff48c2359300ef812f10ee1 (patch)
tree1e6a04b2418f5b14378aa7ab92ce05cbd7f90446 /src/or
parentc3a7bcf4e6652fe34714caaf94cb39e555df87b1 (diff)
downloadtor-77bc1b803e0d58b23ff48c2359300ef812f10ee1.tar.gz
tor-77bc1b803e0d58b23ff48c2359300ef812f10ee1.zip
Fix a bunch of check-spaces complaints
Diffstat (limited to 'src/or')
-rw-r--r--src/or/connection.c3
-rw-r--r--src/or/networkstatus.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index afdda9293a..c9093fe16e 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -913,7 +913,8 @@ connection_listener_new(const struct sockaddr *listensockaddr,
#endif
/* We need to set IPV6_V6ONLY so that this socket can't get used for
* IPv4 connections. */
- if (setsockopt(s,IPPROTO_IPV6, IPV6_V6ONLY, (void*)&one, sizeof(one))<0) {
+ if (setsockopt(s,IPPROTO_IPV6, IPV6_V6ONLY,
+ (void*)&one, sizeof(one))<0) {
int e = tor_socket_errno(s);
log_warn(LD_NET, "Error setting IPV6_V6ONLY flag: %s",
tor_socket_strerror(e));
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index afd531aeeb..910b99c5c0 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -1357,8 +1357,8 @@ update_consensus_networkstatus_fetch_time_impl(time_t now, int flav)
format_local_iso_time(tbuf1, c->fresh_until);
format_local_iso_time(tbuf2, c->valid_until);
format_local_iso_time(tbuf3, time_to_download_next_consensus[flav]);
- log_info(LD_DIR, "Live %s consensus %s the most recent until %s and will "
- "expire at %s; fetching the next one at %s.",
+ log_info(LD_DIR, "Live %s consensus %s the most recent until %s and "
+ "will expire at %s; fetching the next one at %s.",
flavor, (c->fresh_until > now) ? "will be" : "was",
tbuf1, tbuf2, tbuf3);
}