浏览代码

Constify struct sockaddr *sa parameter for check

The values are only being checked, not modified.
Matthew Finkel 11 年之前
父节点
当前提交
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;