libutp icon indicating copy to clipboard operation
libutp copied to clipboard

refactor: make utp_write() buf arg a const*

Open ckerr opened this issue 3 years ago • 0 comments

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.

ckerr avatar Jul 19 '22 19:07 ckerr