From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5B47C13864D for ; Thu, 24 Jan 2013 10:15:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BF5D2E073E; Thu, 24 Jan 2013 10:15:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 38096E073E for ; Thu, 24 Jan 2013 10:15:10 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3768D33D8B0 for ; Thu, 24 Jan 2013 10:15:09 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id C8B4DE4086 for ; Thu, 24 Jan 2013 10:15:07 +0000 (UTC) From: "Sven Eden" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Eden" Message-ID: <1359022516.ffd649aa6a59a0c06a675f4884e40d0b5dc550e4.yamakuzure@gentoo> Subject: [gentoo-commits] proj/ufed:master commit in: / X-VCS-Repository: proj/ufed X-VCS-Files: ufed-curses.h X-VCS-Directories: / X-VCS-Committer: yamakuzure X-VCS-Committer-Name: Sven Eden X-VCS-Revision: ffd649aa6a59a0c06a675f4884e40d0b5dc550e4 X-VCS-Branch: master Date: Thu, 24 Jan 2013 10:15:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 94bae54d-3918-49d3-aca9-13ea82c8e698 X-Archives-Hash: cccd7fec6db27aa0da3e17b401a1febe commit: ffd649aa6a59a0c06a675f4884e40d0b5dc550e4 Author: Sven Eden gmx de> AuthorDate: Thu Jan 24 10:15:16 2013 +0000 Commit: Sven Eden gmx de> CommitDate: Thu Jan 24 10:15:16 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ufed.git;a=commit;h=ffd649aa Exit curses before erroring out with ERROR_EXIT() macro. --- ufed-curses.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ufed-curses.h b/ufed-curses.h index 6f46e28..3ef4a24 100644 --- a/ufed-curses.h +++ b/ufed-curses.h @@ -11,13 +11,14 @@ #if defined(DEBUG_EXIT) # define ERROR_EXIT(code, fmt, ...) { \ + cursesdone(); \ fprintf(stderr, "\nERROR in %s:%d (%s): \n -> ", \ __FILE__, __LINE__, __FUNCTION__); \ fprintf(stderr, fmt, __VA_ARGS__); \ exit(code); \ } #else -# define ERROR_EXIT(code, ...) { exit(code); } +# define ERROR_EXIT(code, ...) { cursesdone(); exit(code); } #endif // DEBUG_EXIT #if defined(DEBUG_TRACE) # define TRACE { \