From fce68beaafade3453b89ade29d95e99ac172de01 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Sat, 7 Jan 2006 18:11:37 +0000 Subject: code cleanup --- src/pacman/util.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/pacman/util.c b/src/pacman/util.c index a279e004..af77e8ea 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -195,8 +195,10 @@ int yesno(char *fmt, ...) char response[32]; va_list args; - if(!config->noconfirm) - { + if(config->noconfirm) { + return(1); + } + va_start(args, fmt); vprintf(fmt, args); va_end(args); @@ -222,9 +224,6 @@ int yesno(char *fmt, ...) } } return(0); - } else { - return(1); - } } /* match a string against a regular expression */ -- cgit v1.2.3-70-g09d2