mirror of
https://codeberg.org/shufflecake/shufflecake-c.git
synced 2026-01-11 13:31:21 -05:00
maybe you should init the args_base wdyt
This commit is contained in:
parent
5edfda18b0
commit
72cb56eff7
3 changed files with 9 additions and 1 deletions
|
|
@ -97,6 +97,10 @@ static struct sflc_ctor_args_base *sflegc_parse_ctor_args(int argc, char ** argv
|
|||
err = -EINVAL;
|
||||
goto bad_parse;
|
||||
}
|
||||
/* Base args */
|
||||
err = sflc_ctor_args_base_init(&args->args_base, argc, argv);
|
||||
if (err)
|
||||
goto bad_parse;
|
||||
/* Tot slices */
|
||||
if (sscanf(argv[4], "%u", &args->tot_slices) != 1) {
|
||||
DMERR("Could not decode tot_slices");
|
||||
|
|
|
|||
|
|
@ -55,6 +55,10 @@ static struct sflc_ctor_args_base *sflite_parse_ctor_args(int argc, char ** argv
|
|||
err = -EINVAL;
|
||||
goto bad_parse;
|
||||
}
|
||||
/* Base args */
|
||||
err = sflc_ctor_args_base_init(&args->args_base, argc, argv);
|
||||
if (err)
|
||||
goto bad_parse;
|
||||
/* Tot slices */
|
||||
if (sscanf(argv[4], "%u", &args->tot_slices) != 1) {
|
||||
DMERR("Could not decode tot_slices");
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ struct sflc_volume_base *sflite_vol_ctr(struct sflc_device_base *sd_base,
|
|||
err = dm_get_device(ti, sdev->sd_base.name,
|
||||
dm_table_get_mode(ti->table), &svol->dm_dev);
|
||||
if (err) {
|
||||
ti->error = "Device lookup failed";
|
||||
DMERR("Could not dm_get_device %s", sdev->sd_base.name);
|
||||
goto bad_dm_dev;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue