Centralized the inquiry whether an image change is pending
This commit is contained in:
@ -293,7 +293,7 @@ int Xorriso_option_print_size(struct XorrisO *xorriso, int flag)
|
||||
{
|
||||
int ret, fd;
|
||||
|
||||
if(!xorriso->volset_change_pending) {
|
||||
if(!Xorriso_change_is_pending(xorriso, 0)) {
|
||||
sprintf(xorriso->info_text,"-print_size: No image modifications pending");
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "WARNING", 0);
|
||||
if(!(flag & 1)) {
|
||||
@ -586,7 +586,7 @@ int Xorriso_option_rollback(struct XorrisO *xorriso, int flag)
|
||||
char *indev= NULL, *which_will;
|
||||
|
||||
Xorriso_alloc_meM(indev, char, SfileadrL);
|
||||
if(xorriso->volset_change_pending)
|
||||
if(Xorriso_change_is_pending(xorriso, 0))
|
||||
which_will= "revoke the pending image changes";
|
||||
else
|
||||
which_will= "reload the image";
|
||||
|
Reference in New Issue
Block a user