From 6103066b175874cdb9c8425b29bf1520f8742b36 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 23 Dec 2003 10:24:49 +0000 Subject: [PATCH] (map_assuan_err): Prepared for a new error code. --- common/ChangeLog | 4 ++++ common/maperror.c | 15 ++++----------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/common/ChangeLog b/common/ChangeLog index e69df733f..1b454fa13 100644 --- a/common/ChangeLog +++ b/common/ChangeLog @@ -1,3 +1,7 @@ +2003-12-23 Werner Koch + + * maperror.c (map_assuan_err): Prepared for a new error code. + 2003-12-17 Werner Koch * gettime.c (asctimestamp): Add a note on a non-avoidable gcc warning. diff --git a/common/maperror.c b/common/maperror.c index 361166388..b04ec0bb3 100644 --- a/common/maperror.c +++ b/common/maperror.c @@ -72,6 +72,10 @@ map_assuan_err (int err) case ASSUAN_Not_Confirmed: ec = GPG_ERR_NOT_CONFIRMED; break; case ASSUAN_Invalid_Id: ec = GPG_ERR_INV_ID; break; +#if 0 /* FIXME: Enable this after releasing libgpg error 0.7 */ + case ASSUAN_Locale_Problem: ec = GPG_ERR_LOCALE_PROBLEM; break; +#endif + default: ec = err < 100? GPG_ERR_ASSUAN_SERVER_FAULT : GPG_ERR_ASSUAN; break; @@ -101,14 +105,3 @@ map_to_assuan_status (int rc) return gpg_err_make (es, ec); } - - - - - - - - - - -