Silence warnings about pointer casting
This commit was SVN r29226.
Этот коммит содержится в:
родитель
400c68ed0f
Коммит
63da76ad5f
@ -357,9 +357,14 @@ static bool cache_keys_locally (const opal_identifier_t *uid, const char *key)
|
||||
|
||||
/* cache value locally so we don't have to look it up via pmi again */
|
||||
if (OPAL_BYTE_OBJECT == stored_type) {
|
||||
opal_byte_object_t bo = {.bytes = (unsigned char *) (size == 0xffff) ? NULL : tmp3,
|
||||
.size = (size == 0xffff) ? 0 : size};
|
||||
|
||||
opal_byte_object_t bo;
|
||||
if (size == 0xffff) {
|
||||
bo.bytes = NULL;
|
||||
bo.size = 0;
|
||||
} else {
|
||||
bo.bytes = (uint8_t*)tmp3;
|
||||
bo.size = size;
|
||||
}
|
||||
opal_db.store (uid, OPAL_DB_INTERNAL, tmp_val + offset, &bo, stored_type);
|
||||
} else if (size < 0xffff) {
|
||||
opal_db.store (uid, OPAL_DB_INTERNAL, tmp_val + offset, tmp3, stored_type);
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user