diff options
author | Dan McGee <dan@archlinux.org> | 2007-04-26 21:28:54 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-04-26 21:28:54 +0200 |
commit | 961be77c93b487987600cd041bef3aa656949724 (patch) | |
tree | 7f3dc977420612b03066459db95bc5618cf2b5df /src/pacman/pacman.c | |
parent | f0304168ee4fa6473f72351b7332b3773824f82b (diff) | |
download | pacman-961be77c93b487987600cd041bef3aa656949724.tar.gz pacman-961be77c93b487987600cd041bef3aa656949724.tar.xz |
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 <dan@archlinux.org>
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r-- | src/pacman/pacman.c | 11 |
1 files changed, 2 insertions, 9 deletions
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); } |