summaryrefslogtreecommitdiffstats
path: root/common/yesno.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2009-08-05 13:24:43 +0200
committerWerner Koch <wk@gnupg.org>2009-08-05 13:24:43 +0200
commite57d2a86300b86799aa86f8172dfc0bae5db9bb4 (patch)
treed672f0589d85ebe4595ea6741b0d162d45af9d4e /common/yesno.c
parent* gpg.c (main): --pgp6 includes --disable-mdc. (diff)
downloadgnupg2-e57d2a86300b86799aa86f8172dfc0bae5db9bb4.tar.xz
gnupg2-e57d2a86300b86799aa86f8172dfc0bae5db9bb4.zip
Ask for the keysize when generating a new card key.
Diffstat (limited to 'common/yesno.c')
-rw-r--r--common/yesno.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/yesno.c b/common/yesno.c
index fdbf7ddd1..a7131b7d5 100644
--- a/common/yesno.c
+++ b/common/yesno.c
@@ -24,8 +24,12 @@
#include "i18n.h"
#include "util.h"
+
+/* Check the string S for a YES or NO answer and take care of
+ localization. If no valid string is given the value of DEF_ANSWER
+ is returned. Returns 1 for yes and 0 for no. */
int
-answer_is_yes_no_default( const char *s, int def_answer )
+answer_is_yes_no_default (const char *s, int def_answer)
{
/* TRANSLATORS: See doc/TRANSLATE about this string. */
const char *long_yes = _("yes");