소스 검색

Constify struct sockaddr *sa parameter for check

The values are only being checked, not modified.
Matthew Finkel 12 년 전
부모
커밋
a47e4343de
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/or/connection.c

+ 1 - 1
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;