From 166ffc4f9e3bf3b0014c8c307f93af650fd24feb Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Wed, 7 Mar 2007 07:45:30 +0000 Subject: * Bug fix for makepkg dependency testing. This requires that we expose alpm_splitdep and alpm_depcmp as public symbols * Removed a duplicate strtrim for question responses --- src/pacman/log.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/pacman/log.c') diff --git a/src/pacman/log.c b/src/pacman/log.c index 1b65e28d..9d719912 100644 --- a/src/pacman/log.c +++ b/src/pacman/log.c @@ -184,19 +184,6 @@ int yesno(char *fmt, ...) pm_fprintf(stderr, NL, str); \ if(fgets(response, 32, stdin)) { - /* trim whitespace and newlines */ - char *pch = response; - while(isspace(*pch)) { - pch++; - } - if(pch != response) { - memmove(response, pch, strlen(pch) + 1); - } - pch = response + strlen(response) - 1; - while(isspace(*pch)) { - pch--; - } - *++pch = 0; if(strlen(response) != 0) { strtrim(response); } -- cgit v1.2.3-24-g4f1b