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

recvmsg: take slice for cmsg_buffer #2524

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Commits on Oct 22, 2024

  1. recvmsg: take slice for cmsg_buffer

    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 nix-rust#2523
    Benedek Thaler committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    74e246c View commit details
    Browse the repository at this point in the history