瀏覽代碼

Remove warning by casting properly in totemnet.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2283 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 16 年之前
父節點
當前提交
cd564ca15a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      exec/totemnet.c

+ 2 - 2
exec/totemnet.c

@@ -585,7 +585,7 @@ static int authenticate_and_decrypt_nss (
 	unsigned char *data;
 	unsigned char *data;
 	unsigned char *inbuf;
 	unsigned char *inbuf;
 	size_t        datalen;
 	size_t        datalen;
-	struct security_header *header = iov[0].iov_base;
+	struct security_header *header = (struct security_header *)iov[0].iov_base;
 	SECItem no_params;
 	SECItem no_params;
 	SECItem ivdata;
 	SECItem ivdata;
 
 
@@ -602,7 +602,7 @@ static int authenticate_and_decrypt_nss (
 		}
 		}
 	}
 	}
 	else {
 	else {
-		inbuf = iov[0].iov_base;
+		inbuf = (unsigned char *)iov[0].iov_base;
 		datalen = iov[0].iov_len;
 		datalen = iov[0].iov_len;
 	}
 	}
 	data = inbuf + sizeof (struct security_header) - 16;
 	data = inbuf + sizeof (struct security_header) - 16;