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

refactor: make utp_write() buf arg a const* #132

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ckerr
Copy link

@ckerr ckerr commented Jul 19, 2022

No functional changes; just a minor const-correctness change.

Use case: client code calls utp_write() or utp_writev() from a function that receives the data in const form, but currently has to cast away the const with const_cast<void*>(data) to match the current libutp API.

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.

1 participant