X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=perl%2FGuestfs.xs;h=5ce5def1835084fcc8ffe6d26a7f39acc47aa069;hp=ce697c54d0581cd703c79bb272942ed2a9805fed;hb=09128ca421f13da9fb6446cd7b09b0ae89c3876f;hpb=0faa5dde7b992ba11bb88f77b3424676c7c492e4 diff --git a/perl/Guestfs.xs b/perl/Guestfs.xs index ce697c5..5ce5def 100644 --- a/perl/Guestfs.xs +++ b/perl/Guestfs.xs @@ -68,7 +68,7 @@ XS_unpack_charPtrPtr (SV *arg) { croak ("array reference expected"); av = (AV *)SvRV (arg); - ret = malloc (av_len (av) + 1 + 1); + ret = malloc ((av_len (av) + 1 + 1) * sizeof (char *)); if (!ret) croak ("malloc failed"); @@ -352,6 +352,16 @@ PREINIT: croak ("set_ready: %s", guestfs_last_error (g)); void +end_busy (g) + guestfs_h *g; +PREINIT: + int r; + PPCODE: + r = guestfs_end_busy (g); + if (r == -1) + croak ("end_busy: %s", guestfs_last_error (g)); + +void mount (g, device, mountpoint) guestfs_h *g; char *device;