Skip to content

[maintenance]: bool is a keyword in newer C versions, cannot be a parameter #6459

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

Merged
merged 1 commit into from
May 9, 2025
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