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

fix 2 bugs introduced in PR #35 #40

Merged
merged 3 commits into from
Mar 26, 2016
Merged

fix 2 bugs introduced in PR #35 #40

merged 3 commits into from
Mar 26, 2016

Conversation

vgheo
Copy link
Contributor

@vgheo vgheo commented Mar 20, 2016

057d : fix inappropriate use of exit to break a for loop
The use of exit as a keyword has no effect. It is actually a no-effect expression of type pointer-to-function, for the standard function void exit(int).
See https://gist.github.com/vgheo/f34ac7afd6447b3f1fc4 for a test case.

efff : fix off-by-one error in loop over all defined protocols
The protocol identifier is 1-based, hence the full range of protocols is 1..numProto .
receiveProtocol() handles this by subtracting 1 from the protocol id to transform it in a valid index in the proto[] global array.

@fingolfin fingolfin merged commit 884bbd7 into sui77:master Mar 26, 2016
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