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

Change set&append data to be const. #249

Merged
merged 1 commit into from
Jan 29, 2024
Merged

Conversation

schallee
Copy link
Contributor

All implementations of set_variable and append_variable never modify the data pointed to. Callers don't know by the function signitures that their data will not be modified nor can they pass const buffers without warnings. This commit adds const to all function signatures and fixes the one assignment where the pointer is copied to a non-const pointer.

All implementations of set_variable and append_variable never modify
the data pointed to. Callers don't know by the function signitures that
their data will not be modified nor can they pass const buffers without
warnings. This commit adds const to all function signatures and fixes
the one assignment where the pointer is copied to a non-const pointer.

Signed-off-by: Ed Schaller <schallee@darkmist.net>
@vathpela vathpela merged commit ab3cf61 into rhboot:main Jan 29, 2024
1 check passed
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