btl_usnic_connectivity.h: fix PACK_BYTES macro
We're passing a char foo[x] into PACK_BYTES, so we don't need to take its address in the macro. This is parallel to the UNPACK_BYTES macro (where we pass a char bar[x] into it, and don't take its address in the macro). The value we're packing is only used to output in a show_help message, which is why this wasn't noticed before (i.e., it's not used in network or addressing that would have caused a failure). cmr=v1.8.2:reviewer=dgoodell This commit was SVN r31594.
Этот коммит содержится в:
родитель
6aa5680059
Коммит
bf82ee2a14
@ -95,7 +95,7 @@ struct ompi_btl_usnic_module_t;
|
||||
#define PACK_BYTES(buffer, value, num_bytes) \
|
||||
do { \
|
||||
int ret; \
|
||||
ret = opal_dss.pack((buffer), &(value), (num_bytes), OPAL_BYTE); \
|
||||
ret = opal_dss.pack((buffer), (value), (num_bytes), OPAL_BYTE); \
|
||||
if (OPAL_SUCCESS != ret) { \
|
||||
OMPI_ERROR_LOG(ret); \
|
||||
ABORT("Could not pack"); \
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user