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

convert each "size_t iov_len" declaration to "unsigned int iov_len"

Via this command:
git grep -l -E 'size_t[[:blank:]]+iov_len' \
  | xargs perl -pi -e 's/((?:^|,)\s*)size_t\s+(iov_len)/${1}unsigned int $2/'

Affected files and (functions/macros):
* exec/totempg.c (totempg_groups_mcast_groups)
(totempg_groups_send_ok_groups):
* include/corosync/evs.h (evs_callbacks_t):
* include/corosync/totem/totempg.h (TOTEMPG_SAFE):
* lib/evs.c (evs_mcast_joined, evs_mcast_groups):
* man/cpg_mcast_joined.3:
* man/evs_mcast_groups.3:
* man/evs_mcast_joined.3:

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2032 fd59a12c-fef9-0310-b244-a6a79926bd2f
Jim Meyering 17 лет назад
Родитель
Сommit
29eb77a9fb
7 измененных файлов с 11 добавлено и 11 удалено
  1. 2 2
      exec/totempg.c
  2. 2 2
      include/corosync/evs.h
  3. 2 2
      include/corosync/totem/totempg.h
  4. 2 2
      lib/evs.c
  5. 1 1
      man/cpg_mcast_joined.3
  6. 1 1
      man/evs_mcast_groups.3
  7. 1 1
      man/evs_mcast_joined.3

+ 2 - 2
exec/totempg.c

@@ -1199,7 +1199,7 @@ int totempg_groups_mcast_groups (
 	const struct totempg_group *groups,
 	const struct totempg_group *groups,
 	size_t groups_cnt,
 	size_t groups_cnt,
 	const struct iovec *iovec,
 	const struct iovec *iovec,
-	size_t iov_len)
+	unsigned int iov_len)
 {
 {
 	struct totempg_group_instance *instance;
 	struct totempg_group_instance *instance;
 	unsigned short group_len[MAX_GROUPS_PER_MSG + 1];
 	unsigned short group_len[MAX_GROUPS_PER_MSG + 1];
@@ -1247,7 +1247,7 @@ int totempg_groups_send_ok_groups (
 	const struct totempg_group *groups,
 	const struct totempg_group *groups,
 	size_t groups_cnt,
 	size_t groups_cnt,
 	const struct iovec *iovec,
 	const struct iovec *iovec,
-	size_t iov_len)
+	unsigned int iov_len)
 {
 {
 	struct totempg_group_instance *instance;
 	struct totempg_group_instance *instance;
 	unsigned int size = 0;
 	unsigned int size = 0;

+ 2 - 2
include/corosync/evs.h

@@ -142,7 +142,7 @@ cs_error_t evs_mcast_joined (
 	evs_handle_t handle,
 	evs_handle_t handle,
 	evs_guarantee_t guarantee,
 	evs_guarantee_t guarantee,
 	const struct iovec *iovec,
 	const struct iovec *iovec,
-	size_t iov_len);
+	unsigned int iov_len);
 
 
 /*
 /*
  * Multicast to specified groups.
  * Multicast to specified groups.
@@ -155,7 +155,7 @@ cs_error_t evs_mcast_groups (
 	const struct evs_group *groups,
 	const struct evs_group *groups,
 	size_t group_cnt,
 	size_t group_cnt,
 	const struct iovec *iovec,
 	const struct iovec *iovec,
-	size_t iov_len);
+	unsigned int iov_len);
 
 
 /*
 /*
  * Get membership information from evs
  * Get membership information from evs

+ 2 - 2
include/corosync/totem/totempg.h

@@ -124,14 +124,14 @@ extern int totempg_groups_mcast_groups (
 	const struct totempg_group *groups,
 	const struct totempg_group *groups,
 	size_t groups_cnt,
 	size_t groups_cnt,
 	const struct iovec *iovec,
 	const struct iovec *iovec,
-	size_t iov_len);
+	unsigned int iov_len);
 
 
 extern int totempg_groups_send_ok_groups (
 extern int totempg_groups_send_ok_groups (
 	hdb_handle_t handle,
 	hdb_handle_t handle,
 	const struct totempg_group *groups,
 	const struct totempg_group *groups,
 	size_t groups_cnt,
 	size_t groups_cnt,
 	const struct iovec *iovec,
 	const struct iovec *iovec,
-	size_t iov_len);
+	unsigned int iov_len);
 	
 	
 extern int totempg_ifaces_get (
 extern int totempg_ifaces_get (
 	unsigned int nodeid,
 	unsigned int nodeid,

+ 2 - 2
lib/evs.c

@@ -413,7 +413,7 @@ evs_error_t evs_mcast_joined (
 	evs_handle_t handle,
 	evs_handle_t handle,
 	evs_guarantee_t guarantee,
 	evs_guarantee_t guarantee,
 	const struct iovec *iovec,
 	const struct iovec *iovec,
-	size_t iov_len)
+	unsigned int iov_len)
 {
 {
 	int i;
 	int i;
 	evs_error_t error;
 	evs_error_t error;
@@ -470,7 +470,7 @@ evs_error_t evs_mcast_groups (
 	const struct evs_group *groups,
 	const struct evs_group *groups,
 	size_t group_entries,
 	size_t group_entries,
 	const struct iovec *iovec,
 	const struct iovec *iovec,
-	size_t iov_len)
+	unsigned int iov_len)
 {
 {
 	int i;
 	int i;
 	evs_error_t error;
 	evs_error_t error;

+ 1 - 1
man/cpg_mcast_joined.3

@@ -102,7 +102,7 @@ is a standard socket structure described by:
 struct iovec
 struct iovec
 {
 {
         void *iov_base;     /* Pointer to data.  */
         void *iov_base;     /* Pointer to data.  */
-        size_t iov_len;     /* Length of data.  */
+        unsigned int iov_len;     /* Length of data.  */
 };
 };
 .ta
 .ta
 .fi
 .fi

+ 1 - 1
man/evs_mcast_groups.3

@@ -130,7 +130,7 @@ is a standard socket structure described by:
 struct iovec
 struct iovec
 {
 {
 	void *iov_base;     /* Pointer to data.  */
 	void *iov_base;     /* Pointer to data.  */
-	size_t iov_len;     /* Length of data.  */
+	unsigned int iov_len;     /* Length of data.  */
 };
 };
 .ta
 .ta
 .fi
 .fi

+ 1 - 1
man/evs_mcast_joined.3

@@ -103,7 +103,7 @@ is a standard socket structure described by:
 struct iovec
 struct iovec
 {
 {
 	void *iov_base;     /* Pointer to data.  */
 	void *iov_base;     /* Pointer to data.  */
-	size_t iov_len;     /* Length of data.  */
+	unsigned int iov_len;     /* Length of data.  */
 };
 };
 .ta
 .ta
 .fi
 .fi