Skip to content

Conversation

@rhc54
Copy link
Contributor

@rhc54 rhc54 commented Jul 5, 2017

Signed-off-by: Ralph Castain [email protected]

mca_btl_ugni_module_t *ugni_module = (mca_btl_ugni_module_t *) btl;
int rc;
void *mmap_start_addr;
struct timeval tv = {0, MCA_BTL_UGNI_CONNECT_USEC};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rhc54 I would advise retaining the named initializer (here and in the other struct timeval case) to yield

struct timeval tv = {.tv_sec = 0, .tv_usec = MCA_BTL_UGNI_CONNECT_USEC};

I say this because POSIX defines the struct with the intentionally vague phrase "shall include at least the following members" used throughout the standard. By my interpretation this does not guarantee their order or even that they are the first two members.
I freely acknowledge that I am being paranoid.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point - will do!

@rhc54 rhc54 merged commit 7bea824 into open-mpi:master Jul 6, 2017
@rhc54 rhc54 deleted the topic/esh branch July 6, 2017 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants