mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 08:18:51 -05:00
code cleanup
This commit is contained in:
parent
02694534be
commit
fce68beaaf
@ -195,8 +195,10 @@ int yesno(char *fmt, ...)
|
|||||||
char response[32];
|
char response[32];
|
||||||
va_list args;
|
va_list args;
|
||||||
|
|
||||||
if(!config->noconfirm)
|
if(config->noconfirm) {
|
||||||
{
|
return(1);
|
||||||
|
}
|
||||||
|
|
||||||
va_start(args, fmt);
|
va_start(args, fmt);
|
||||||
vprintf(fmt, args);
|
vprintf(fmt, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
@ -222,9 +224,6 @@ int yesno(char *fmt, ...)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return(0);
|
return(0);
|
||||||
} else {
|
|
||||||
return(1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* match a string against a regular expression */
|
/* match a string against a regular expression */
|
||||||
|
Loading…
Reference in New Issue
Block a user