*snap = s;
}
-static void set_pool_image_name(const char *orig_pool, const char *orig_img,
- char **new_pool, char **new_img, char **snap)
+static void set_pool_image_name(const char *orig_img, char **new_pool,
+ char **new_img, char **snap)
{
const char *sep;
// do this unconditionally so we can parse pool/image@snapshot into
// the relevant parts
- set_pool_image_name(poolname, imgname, (char **)&poolname,
+ set_pool_image_name(imgname, (char **)&poolname,
(char **)&imgname, (char **)&snapname);
if (snapname && opt_cmd != OPT_SNAP_CREATE && opt_cmd != OPT_SNAP_ROLLBACK &&
opt_cmd != OPT_SNAP_REMOVE && opt_cmd != OPT_INFO &&
return EXIT_FAILURE;
}
- set_pool_image_name(dest_poolname, destname, (char **)&dest_poolname,
+ set_pool_image_name(destname, (char **)&dest_poolname,
(char **)&destname, (char **)&dest_snapname);
if (opt_cmd == OPT_IMPORT) {