Centralized the inquiry whether an image change is pending

This commit is contained in:
2012-03-03 13:39:50 +00:00
parent a5bfce693c
commit 105f007089
8 changed files with 22 additions and 22 deletions

View File

@ -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";