rb_raise (rb_eTypeError, "expected string for parameter %s of %s",
"str", "test0");
const char *optstr = !NIL_P (optstrv) ? StringValueCStr (optstrv) : NULL;
- char **strlist; {
+ char **strlist;
+ {
int i, len;
len = RARRAY_LEN (strlistv);
strlist = guestfs_safe_malloc (g, sizeof (char *) * (len+1));
if (!volgroup)
rb_raise (rb_eTypeError, "expected string for parameter %s of %s",
"volgroup", "vgcreate");
- char **physvols; {
+ char **physvols;
+ {
int i, len;
len = RARRAY_LEN (physvolsv);
physvols = guestfs_safe_malloc (g, sizeof (char *) * (len+1));
int cyls = NUM2INT (cylsv);
int heads = NUM2INT (headsv);
int sectors = NUM2INT (sectorsv);
- char **lines; {
+ char **lines;
+ {
int i, len;
len = RARRAY_LEN (linesv);
lines = guestfs_safe_malloc (g, sizeof (char *) * (len+1));
if (!g)
rb_raise (rb_eArgError, "%s: used handle after closing it", "command");
- char **arguments; {
+ char **arguments;
+ {
int i, len;
len = RARRAY_LEN (argumentsv);
arguments = guestfs_safe_malloc (g, sizeof (char *) * (len+1));
if (!g)
rb_raise (rb_eArgError, "%s: used handle after closing it", "command_lines");
- char **arguments; {
+ char **arguments;
+ {
int i, len;
len = RARRAY_LEN (argumentsv);
arguments = guestfs_safe_malloc (g, sizeof (char *) * (len+1));
if (!subcmd)
rb_raise (rb_eTypeError, "expected string for parameter %s of %s",
"subcmd", "debug");
- char **extraargs; {
+ char **extraargs;
+ {
int i, len;
len = RARRAY_LEN (extraargsv);
extraargs = guestfs_safe_malloc (g, sizeof (char *) * (len+1));
rb_raise (rb_eArgError, "%s: used handle after closing it", "vg_activate");
int activate = RTEST (activatev);
- char **volgroups; {
+ char **volgroups;
+ {
int i, len;
len = RARRAY_LEN (volgroupsv);
volgroups = guestfs_safe_malloc (g, sizeof (char *) * (len+1));