commit a47e4343dec68b9d89de16f08477c41b43056361 Author: Matthew Finkel matthew.finkel@gmail.com Date: Thu Aug 2 15:29:38 2012 -0400
Constify struct sockaddr *sa parameter for check
The values are only being checked, not modified. --- src/or/connection.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/or/connection.c b/src/or/connection.c index 777162c..56cec9d 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -1090,7 +1090,7 @@ connection_listener_new(const struct sockaddr *listensockaddr, * nmap does). We want to detect that, and not go on with the connection. */ static int -check_sockaddr(struct sockaddr *sa, int len, int level) +check_sockaddr(const struct sockaddr *sa, int len, int level) { int ok = 1;
tor-commits@lists.torproject.org