(map_assuan_err): Prepared for a new error code.

This commit is contained in:
Werner Koch 2003-12-23 10:24:49 +00:00
parent 02f20a7506
commit 6103066b17
2 changed files with 8 additions and 11 deletions

View File

@ -1,3 +1,7 @@
2003-12-23 Werner Koch <wk@gnupg.org>
* maperror.c (map_assuan_err): Prepared for a new error code.
2003-12-17 Werner Koch <wk@gnupg.org>
* gettime.c (asctimestamp): Add a note on a non-avoidable gcc warning.

View File

@ -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);
}