1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 16:28:50 -05:00

code cleanup

This commit is contained in:
Aurelien Foret 2006-01-07 18:11:37 +00:00
parent 02694534be
commit fce68beaaf

View File

@ -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 */