浏览代码

Appease the hungry god of GCC: it wants functions to be static or prototyped!

svn:r4471
Nick Mathewson 20 年之前
父节点
当前提交
3ff473b47b
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/or/connection_or.c

+ 3 - 2
src/or/connection_or.c

@@ -466,8 +466,9 @@ connection_or_nonopen_was_started_here(connection_t *conn)
  *    descriptors that claim to be on that IP/port but that aren't
  *    this guy; and note that this guy is reachable.
  */
-int
-connection_or_check_valid_handshake(connection_t *conn, char *digest_rcvd) {
+static int
+connection_or_check_valid_handshake(connection_t *conn, char *digest_rcvd)
+{
   routerinfo_t *router;
   crypto_pk_env_t *identity_rcvd=NULL;
   char nickname[MAX_NICKNAME_LEN+1];