]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Constify struct sockaddr *sa parameter for check
authorMatthew Finkel <matthew.finkel@gmail.com>
Thu, 2 Aug 2012 19:29:38 +0000 (15:29 -0400)
committerMatthew Finkel <matthew.finkel@gmail.com>
Thu, 2 Aug 2012 19:29:38 +0000 (15:29 -0400)
The values are only being checked, not modified.

src/or/connection.c

index 777162ca705b39972abb7eec74f34679061263b5..56cec9d98a3804654322aaf53a1f00f321b5bff6 100644 (file)
@@ -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;