mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
See ChangeLog: Mon Sep 18 12:13:52 CEST 2000 Werner Koch
This commit is contained in:
parent
8f45e56ad9
commit
fe88f35c40
5 changed files with 34 additions and 13 deletions
|
@ -274,10 +274,10 @@ make_printable_string( const byte *p, size_t n, int delim )
|
|||
int
|
||||
answer_is_yes( const char *s )
|
||||
{
|
||||
char *long_yes = _("yes");
|
||||
char *short_yes = _("yY");
|
||||
char *long_no = _("no");
|
||||
char *short_no = _("nN");
|
||||
const char *long_yes = _("yes");
|
||||
const char *short_yes = _("yY");
|
||||
const char *long_no = _("no");
|
||||
const char *short_no = _("nN");
|
||||
|
||||
if( !stricmp(s, long_yes ) )
|
||||
return 1;
|
||||
|
@ -303,12 +303,12 @@ answer_is_yes( const char *s )
|
|||
int
|
||||
answer_is_yes_no_quit( const char *s )
|
||||
{
|
||||
char *long_yes = _("yes");
|
||||
char *long_no = _("no");
|
||||
char *long_quit = _("quit");
|
||||
char *short_yes = _("yY");
|
||||
char *short_no = _("nN");
|
||||
char *short_quit = _("qQ");
|
||||
const char *long_yes = _("yes");
|
||||
const char *long_no = _("no");
|
||||
const char *long_quit = _("quit");
|
||||
const char *short_yes = _("yY");
|
||||
const char *short_no = _("nN");
|
||||
const char *short_quit = _("qQ");
|
||||
|
||||
if( !stricmp(s, long_no ) )
|
||||
return 0;
|
||||
|
|
|
@ -193,7 +193,7 @@ tty_printf( const char *fmt, ... )
|
|||
if( !WriteConsoleA( con.out, buf, n, &nwritten, NULL ) )
|
||||
log_fatal("WriteConsole failed: rc=%d", (int)GetLastError() );
|
||||
if( n != nwritten )
|
||||
log_fatal("WriteConsole failed: %d != %ld\n", n, nwritten );
|
||||
log_fatal("WriteConsole failed: %d != %d\n", n, nwritten );
|
||||
last_prompt_len += n;
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue