Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace syntax with something less strictly C99 #3813

Merged
merged 1 commit into from
Jul 6, 2017
Merged

Replace syntax with something less strictly C99 #3813

merged 1 commit into from
Jul 6, 2017

Conversation

rhc54
Copy link
Contributor

@rhc54 rhc54 commented Jul 5, 2017

Signed-off-by: Ralph Castain rhc@open-mpi.org

@@ -35,6 +35,7 @@ int mca_btl_ugni_add_procs (struct mca_btl_base_module_t* btl, size_t nprocs,
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!

Fixes #3809

Signed-off-by: Ralph Castain <rhc@open-mpi.org>
@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