Skip to content

Commit

Permalink
Merge pull request xapi-project#4882 from psafont/no-flags
Browse files Browse the repository at this point in the history
  • Loading branch information
psafont authored Jan 10, 2023
2 parents 6b02e86 + 2962b4a commit de7f3df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ocaml/xenopsd/c_stubs/xenctrlext_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,9 @@ CAMLprim value stub_xenctrlext_cputopoinfo(value xch)
CAMLreturn(result);
}

CAMLprim value stub_xenforeignmemory_open(value logger, value open_flags)
CAMLprim value stub_xenforeignmemory_open(value logger)
{
CAMLparam2(logger, open_flags);
CAMLparam1(logger);
struct xentoollog_logger *log_handle = NULL;
struct xenforeignmemory_handle *fmem;
CAMLlocal1(result);
Expand All @@ -458,7 +458,7 @@ CAMLprim value stub_xenforeignmemory_open(value logger, value open_flags)
// handle fails the ocaml GC will collect this abstract tag
result = caml_alloc(1, Abstract_tag);

fmem = xenforeignmemory_open(log_handle, Int_val(open_flags));
fmem = xenforeignmemory_open(log_handle, 0);

if(fmem == NULL) {
caml_failwith("Error when opening foreign memory handle");
Expand Down

0 comments on commit de7f3df

Please sign in to comment.