Commit 690fc223 authored by Pino Toscano's avatar Pino Toscano Committed by Richard W.M. Jones

Make Optstring_val return const char *

The users just read the result, never changing it.

This also fixes the build in case CAML_SAFE_STRING is defined (which
makes String_val() return const char *).
parent fd3305a8
......@@ -20,7 +20,7 @@
/* Please read libvirt/README file. */
static char *
static const char *
Optstring_val (value strv)
if (strv == Val_int (0)) /* None */
......@@ -20,7 +20,7 @@
/* Please read libvirt/README file. */
static char *Optstring_val (value strv);
static const char *Optstring_val (value strv);
typedef value (*Val_ptr_t) (void *);
static value Val_opt (void *ptr, Val_ptr_t Val_ptr);
typedef value (*Val_const_ptr_t) (const void *);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment