orte_std_cntr_t vs. size_t round 2. Advantage for size_t ...
This commit was SVN r11317.
Этот коммит содержится в:
родитель
c3ba1c1cc1
Коммит
0417d27f46
@ -339,7 +339,7 @@ static void mca_pml_base_modex_registry_callback(
|
|||||||
}
|
}
|
||||||
cnt = 1;
|
cnt = 1;
|
||||||
if (ORTE_SUCCESS != (rc = orte_dss.unpack(&buffer,
|
if (ORTE_SUCCESS != (rc = orte_dss.unpack(&buffer,
|
||||||
&num_bytes, &cnt, ORTE_SIZE))) {
|
&num_bytes, &cnt, ORTE_STD_CNTR))) {
|
||||||
ORTE_ERROR_LOG(rc);
|
ORTE_ERROR_LOG(rc);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -320,13 +320,13 @@ int orte_dss_pack_string(orte_buffer_t *buffer, void *src,
|
|||||||
for (i = 0; i < num_vals; ++i) {
|
for (i = 0; i < num_vals; ++i) {
|
||||||
if (NULL == ssrc[i]) { /* got zero-length string/NULL pointer - store NULL */
|
if (NULL == ssrc[i]) { /* got zero-length string/NULL pointer - store NULL */
|
||||||
len = 0;
|
len = 0;
|
||||||
if (ORTE_SUCCESS != (ret = orte_dss_pack_sizet(buffer, &len, 1, ORTE_SIZE))) {
|
if (ORTE_SUCCESS != (ret = orte_dss_pack_std_cntr(buffer, &len, 1, ORTE_STD_CNTR))) {
|
||||||
ORTE_ERROR_LOG(ret);
|
ORTE_ERROR_LOG(ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
len = strlen(ssrc[i]) + 1;
|
len = strlen(ssrc[i]) + 1;
|
||||||
if (ORTE_SUCCESS != (ret = orte_dss_pack_sizet(buffer, &len, 1, ORTE_SIZE))) {
|
if (ORTE_SUCCESS != (ret = orte_dss_pack_std_cntr(buffer, &len, 1, ORTE_STD_CNTR))) {
|
||||||
ORTE_ERROR_LOG(ret);
|
ORTE_ERROR_LOG(ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -447,7 +447,7 @@ int orte_dss_pack_byte_object(orte_buffer_t *buffer, void *src, orte_std_cntr_t
|
|||||||
|
|
||||||
for (i = 0; i < num; ++i) {
|
for (i = 0; i < num; ++i) {
|
||||||
n = sbyteptr[i]->size;
|
n = sbyteptr[i]->size;
|
||||||
if (ORTE_SUCCESS != (ret = orte_dss_pack_sizet(buffer, &n, 1, ORTE_SIZE))) {
|
if (ORTE_SUCCESS != (ret = orte_dss_pack_std_cntr(buffer, &n, 1, ORTE_STD_CNTR))) {
|
||||||
ORTE_ERROR_LOG(ret);
|
ORTE_ERROR_LOG(ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -492,7 +492,7 @@ int orte_dss_unpack_string(orte_buffer_t *buffer, void *dest,
|
|||||||
char **sdest = (char**) dest;
|
char **sdest = (char**) dest;
|
||||||
|
|
||||||
for (i = 0; i < (*num_vals); ++i) {
|
for (i = 0; i < (*num_vals); ++i) {
|
||||||
if (ORTE_SUCCESS != (ret = orte_dss_unpack_sizet(buffer, &len, &n, ORTE_SIZE))) {
|
if (ORTE_SUCCESS != (ret = orte_dss_unpack_std_cntr(buffer, &len, &n, ORTE_STD_CNTR))) {
|
||||||
ORTE_ERROR_LOG(ret);
|
ORTE_ERROR_LOG(ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -732,7 +732,7 @@ int orte_dss_unpack_byte_object(orte_buffer_t *buffer, void *dest, orte_std_cntr
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* unpack object size in bytes */
|
/* unpack object size in bytes */
|
||||||
if (ORTE_SUCCESS != (ret = orte_dss_unpack_sizet(buffer, &(dbyteptr[i]->size), &m, ORTE_SIZE))) {
|
if (ORTE_SUCCESS != (ret = orte_dss_unpack_std_cntr(buffer, &(dbyteptr[i]->size), &m, ORTE_STD_CNTR))) {
|
||||||
ORTE_ERROR_LOG(ret);
|
ORTE_ERROR_LOG(ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user