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

Removing directives that split up parts of statements. #810

Closed
wants to merge 3 commits into from
Closed

Removing directives that split up parts of statements. #810

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Nov 25, 2015

A suggestion to compile entire statements and expressions, as suggested by code style guidelines from the Linux Kernel and practitioners.

It might improve code understanding, maintainability and error-proneness.

#endif
)
if(checker)
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

I agree with the change in general however, we should use better naming of this variable.

Also checker = msg->saddr completely disregards typing. So apart from the name it should be a Boolean.

And if we are at it, I would try to extract the ipv4 or ipv6 check to a separate function

@ghost
Copy link
Author

ghost commented Nov 27, 2015

Is that what you meant, @bazsi?

@bazsi
Copy link
Collaborator

bazsi commented Nov 29, 2015

This looks great now, now please merge the three patches into one and sign it off so I can merge it.

Thanks.
Bazsi

@bazsi
Copy link
Collaborator

bazsi commented Dec 7, 2015

will you do the rebase or shall I do it?

@ghost
Copy link
Author

ghost commented Dec 8, 2015

@bazsi, please do the rebase. I do not know exactly what to do.

@bazsi
Copy link
Collaborator

bazsi commented Dec 10, 2015

I am closing this in favour of pr #830

@bazsi bazsi closed this Dec 10, 2015
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.

None yet

2 participants