Skip to content

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

Open
ckerr wants to merge 2 commits intobittorrent:masterfrom
ckerr:refactor/make-utp_write()-buf-arg-const
Open

refactor: make utp_write() buf arg a const*#132
ckerr wants to merge 2 commits intobittorrent:masterfrom
ckerr:refactor/make-utp_write()-buf-arg-const

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