-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
recvmsg: take slice for cmsg_buffer (#2524)
Instead of a Vec, to avoid forcing an allocation. `cmsg_space!` now creates a zero initialized vec (instead of a zero-len vec with capacity): this way callsites do not need to be changed. Fixes #2523 Co-authored-by: Benedek Thaler <[email protected]>
- Loading branch information
Showing
2 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
recvmsg: take slice for cmsg_buffer instead of Vec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters