mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
ocaml: Fix parameters to ocaml_guestfs_create.
The first parameter (not used) is a unit, so declare it properly.
This commit is contained in:
@@ -48,7 +48,7 @@ static void event_callback_wrapper (guestfs_h *g, void *data, uint64_t event, in
|
||||
#endif
|
||||
|
||||
/* These prototypes are solely to quiet gcc warning. */
|
||||
CAMLprim value ocaml_guestfs_create (void);
|
||||
CAMLprim value ocaml_guestfs_create (value unitv);
|
||||
CAMLprim value ocaml_guestfs_close (value gv);
|
||||
CAMLprim value ocaml_guestfs_set_event_callback (value gv, value closure, value events);
|
||||
CAMLprim value ocaml_guestfs_delete_event_callback (value gv, value eh);
|
||||
@@ -141,9 +141,9 @@ ocaml_guestfs_raise_closed (const char *func)
|
||||
|
||||
/* Guestfs.create */
|
||||
CAMLprim value
|
||||
ocaml_guestfs_create (void)
|
||||
ocaml_guestfs_create (value unitv)
|
||||
{
|
||||
CAMLparam0 ();
|
||||
CAMLparam1 (unitv);
|
||||
CAMLlocal1 (gv);
|
||||
guestfs_h *g;
|
||||
value *v;
|
||||
|
||||
Reference in New Issue
Block a user