From 961be77c93b487987600cd041bef3aa656949724 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 26 Apr 2007 15:28:54 -0400 Subject: Remove MSG output macro (#define and in code) This is the first step of converting output to standard functions such as printf, and eventually allowing compiliation with the -pedantic flag as is done on the libalpm side. Signed-off-by: Dan McGee --- src/pacman/pacman.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/pacman/pacman.c') diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index d240263d..c4dc848f 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -202,17 +202,13 @@ static void cleanup(int signum) { if(signum==SIGSEGV) { - fprintf(stderr, "Internal pacman error: Segmentation fault\n" - "Please submit a full bug report, with the given package if appropriate.\n"); + fprintf(stderr, "Internal pacman error: Segmentation fault.\n" + "Please submit a full bug report with --debug if appropriate.\n"); exit(signum); } else if((signum == SIGINT) && (alpm_trans_release() == -1) && (pm_errno == PM_ERR_TRANS_COMMITING)) { return; } - if(signum != 0) { - /* TODO why is this here? */ - fprintf(stderr, "\n"); - } /* free alpm library resources */ if(alpm_release() == -1) { @@ -226,9 +222,6 @@ static void cleanup(int signum) config = NULL; } - /* This fixes up any missing newlines (neednl) */ - MSG(NL, ""); - exit(signum); } -- cgit v1.2.3