Просмотр исходного кода

coroipcc.h (coroipcc_msg_send_reply_receive): Make res_len size_t.

* include/corosync/coroipcc.h (coroipcc_msg_send_reply_receive):
change type of res_len parameter.
* lib/coroipcc.c (coroipcc_reply_receive): Likewise.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2045 fd59a12c-fef9-0310-b244-a6a79926bd2f
Jim Meyering 17 лет назад
Родитель
Сommit
a44f4e70e6
2 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      include/corosync/coroipcc.h
  2. 2 2
      lib/coroipcc.c

+ 1 - 1
include/corosync/coroipcc.h

@@ -98,7 +98,7 @@ coroipcc_msg_send_reply_receive (
 	const struct iovec *iov,
 	unsigned int iov_len,
 	void *res_msg,
-	int res_len);
+	size_t res_len);
 
 cs_error_t
 coroipcc_msg_send_reply_receive_in_buf (

+ 2 - 2
lib/coroipcc.c

@@ -620,7 +620,7 @@ retry_semop:
 static cs_error_t
 coroipcc_reply_receive (
 	void *ipc_context,
-	void *res_msg, int res_len)
+	void *res_msg, size_t res_len)
 {
 	struct sembuf sop;
 	struct ipc_segment *ipc_segment = (struct ipc_segment *)ipc_context;
@@ -691,7 +691,7 @@ coroipcc_msg_send_reply_receive (
 	const struct iovec *iov,
 	unsigned int iov_len,
 	void *res_msg,
-	int res_len)
+	size_t res_len)
 {
 	cs_error_t res;