Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ocaml/libs/xapi-stdext/lib/xapi-stdext-unix/unixext_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
#include "blkgetsize.h"

/* Set the TCP_NODELAY flag on a Unix.file_descr */
CAMLprim value stub_unixext_set_tcp_nodelay (value fd, value bool)
CAMLprim value stub_unixext_set_tcp_nodelay (value fd, value nodelay)
{
CAMLparam2 (fd, bool);
CAMLparam2 (fd, nodelay);
int c_fd = Int_val(fd);
int opt = (Bool_val(bool)) ? 1 : 0;
int opt = (Bool_val(nodelay)) ? 1 : 0;
if (setsockopt(c_fd, IPPROTO_TCP, TCP_NODELAY, (void *)&opt, sizeof(opt)) != 0){
uerror("setsockopt", Nothing);
}
Expand Down
Loading