On Friday, 22 September 2017 09:36:03 CEST Richard W.M. Jones wrote:
> diff --git a/common/mlpcre/pcre-c.c b/common/mlpcre/pcre-c.c
> index da9b50d34..15775dad0 100644
> --- a/common/mlpcre/pcre-c.c
> +++ b/common/mlpcre/pcre-c.c
> @@ -225,3 +225,30 @@ guestfs_int_pcre_sub (value nv)
>    memcpy (String_val (strv), str, len);
>    CAMLreturn (strv);
>  }
> +
> +value
> +guestfs_int_pcre_subi (value nv)
> +{
> +  CAMLparam1 (nv);
> +  int n = Int_val (nv);
> +  CAMLlocal1 (rv);
> +  struct last_match *m = gl_tls_get (last_match);

Both 'n' and 'm' can be const.

-- 
Pino Toscano

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Libguestfs mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to