aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Finkel <matthew.finkel@gmail.com>2012-08-02 15:29:38 -0400
committerMatthew Finkel <matthew.finkel@gmail.com>2012-08-02 15:29:38 -0400
commita47e4343dec68b9d89de16f08477c41b43056361 (patch)
tree78d1341fbad829fbb9f691bc84b35ad0d4930db0
parentc9aafa09627305e4aed5ef6871776b0b144ccff7 (diff)
downloadtor-a47e4343dec68b9d89de16f08477c41b43056361.tar
tor-a47e4343dec68b9d89de16f08477c41b43056361.tar.gz
Constify struct sockaddr *sa parameter for check
The values are only being checked, not modified.
-rw-r--r--src/or/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 777162ca7..56cec9d98 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;