소스 검색

more type punning warnings fixed

Andrei Pelinescu-Onciul 17 년 전
부모
커밋
9881d84d55
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules_s/ctl/init_socks.c

+ 1 - 1
modules_s/ctl/init_socks.c

@@ -216,7 +216,7 @@ int init_tcpudp_sock(union sockaddr_union* sa_un, char* address, int port,
 		LOG(L_ERR, "ERROR: init_tcpudp_sock: set non blocking failed\n");
 	}
 	
-	if (bind(s, (struct sockaddr *)&su, sockaddru_len(su))==-1){
+	if (bind(s, &su.s, sockaddru_len(su))==-1){
 		LOG(L_ERR, "ERROR: init_tcpudp_sock: bind: %s [%d]\n",
 				strerror(errno), errno);
 		goto error;