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

Rename UINT32_MAX as it collides with definition in /usr/include/stdi… #711

Closed
wants to merge 1 commit into from

Conversation

corneliusclaussen
Copy link
Contributor

…nt.h

UINT32_MAX is already defined in a system header

Describe your changes

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

@@ -163,7 +163,7 @@ static int v2g_incoming_v2gtp(struct v2g_connection* conn) {
return -1;
}

if (conn->payload_len >= UINT32_MAX - V2GTP_HEADER_LENGTH) {
if (conn->payload_len >= _UINT32_MAX - V2GTP_HEADER_LENGTH) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch! We could also use UINT32_MAX from stdint instead of adding a extra define

Copy link
Contributor Author

Choose a reason for hiding this comment

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

true, changed to the system one

Signed-off-by: Cornelius Claussen <[email protected]>
@SebaLukas
Copy link
Contributor

SebaLukas commented Jun 7, 2024

Changes in config/config-sil.yaml?

@corneliusclaussen corneliusclaussen force-pushed the bugfix/rename-UINT32_MAX branch from 3a82b69 to a2c4203 Compare June 7, 2024 13:00
Copy link
Contributor

@SebaLukas SebaLukas left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@hikinggrass hikinggrass left a comment

Choose a reason for hiding this comment

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

PR should probably be renamed before merging :D

@a-w50 a-w50 mentioned this pull request Jun 11, 2024
3 tasks
@a-w50
Copy link
Contributor

a-w50 commented Jun 11, 2024

Closed in favour of #715

@a-w50 a-w50 closed this Jun 11, 2024
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.

4 participants