diff options
author | Matthew Finkel <matthew.finkel@gmail.com> | 2012-08-02 15:29:38 -0400 |
---|---|---|
committer | Matthew Finkel <matthew.finkel@gmail.com> | 2012-08-02 15:29:38 -0400 |
commit | a47e4343dec68b9d89de16f08477c41b43056361 (patch) | |
tree | 78d1341fbad829fbb9f691bc84b35ad0d4930db0 | |
parent | c9aafa09627305e4aed5ef6871776b0b144ccff7 (diff) | |
download | tor-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.c | 2 |
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; |