Skip to content

Commit 7f02991

Browse files
committed
Update
1 parent cb8d951 commit 7f02991

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/io/sendmsg_zc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ impl Op<SendMsgZc, MultiCQEFuture> {
2121
x.handle().expect("Not in a runtime context").submit_op(
2222
SendMsgZc {
2323
fd: fd.clone(),
24-
msghdr: msghdr.clone(),
24+
msghdr: (*msghdr).clone(),
2525
bytes: 0,
2626
},
2727
|sendmsg_zc| {
2828
opcode::SendMsgZc::new(
29-
types::Fd(sendmsg_zc.fd.raw_fd()),
29+
types::Fd(sendmsg_zc.fd.raw_fd()),
3030
&sendmsg_zc.msghdr as *const _,
3131
)
3232
.build()

src/io/socket.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ impl Socket {
148148
}
149149

150150
pub(crate) async fn sendmsg_zc(
151-
&self,
152-
msghdr: &libc::msghdr
151+
&self,
152+
msghdr: &libc::msghdr,
153153
) -> (libc::msghdr, io::Result<usize>) {
154154
let op = Op::sendmsg_zc(&self.fd, msghdr).unwrap();
155155
op.await

0 commit comments

Comments
 (0)