diff options
author | Werner Koch <[email protected]> | 2005-03-21 15:24:48 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2005-03-21 15:24:48 +0000 |
commit | 31135aff140c9fa2364d7a485c06b05815a958c5 (patch) | |
tree | ab157f7ac7297deb6720ac621d1059da1e5a1d6d /g10/keyedit.c | |
parent | * readline.m4: Check for completion functionality. (diff) | |
download | gnupg-31135aff140c9fa2364d7a485c06b05815a958c5.tar.gz gnupg-31135aff140c9fa2364d7a485c06b05815a958c5.zip |
* keyedit.c (command_generator, keyedit_completion): Changed
indentation.
* card-util.c (command_generator, card_edit_completion): Ditto.
Diffstat (limited to '')
-rw-r--r-- | g10/keyedit.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c index 5a2d54849..bf5ab77d0 100644 --- a/g10/keyedit.c +++ b/g10/keyedit.c @@ -1280,6 +1280,7 @@ parse_sign_type(const char *str,int *localsig,int *nonrevokesig,int *trustsig) return 1; } + /**************** * Menu driven key editor. If seckey_check is true, then a secret key * that matches username will be looked for. If it is false, not all @@ -1408,11 +1409,13 @@ static struct { NULL, cmdNONE, 0, NULL } }; + #ifdef HAVE_LIBREADLINE /* These two functions are used by readline for command completion. */ -static char *command_generator(const char *text,int state) +static char * +command_generator(const char *text,int state) { static int list_index,len; const char *name; @@ -1437,7 +1440,8 @@ static char *command_generator(const char *text,int state) return NULL; } -static char **keyedit_completion(const char *text, int start, int end) +static char ** +keyedit_completion(const char *text, int start, int end) { /* If we are at the start of a line, we try and command-complete. If not, just do nothing for now. */ @@ -1449,7 +1453,8 @@ static char **keyedit_completion(const char *text, int start, int end) return NULL; } -#endif +#endif /* HAVE_LIBREADLINE */ + void keyedit_menu( const char *username, STRLIST locusr, @@ -2163,6 +2168,7 @@ keyedit_menu( const char *username, STRLIST locusr, } + /**************** * show preferences of a public keyblock. */ |