mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Make use of the *_NAME etc macros.
Replace hardwired strings at many places with new macros from config.h and use the new strusage macro replacement feature. * common/asshelp.c (lock_spawning) [W32]: Change the names of the spawn sentinels. * agent/command.c (cmd_import_key): Use asprintf to create the prompt.
This commit is contained in:
parent
798daaa1dd
commit
cc9a0b69b6
48 changed files with 355 additions and 320 deletions
|
@ -98,18 +98,18 @@ my_strusage( int level )
|
|||
|
||||
switch (level)
|
||||
{
|
||||
case 11: p = "gpgconf (GnuPG)";
|
||||
case 11: p = "@GPGCONF@ (@GNUPG@)";
|
||||
break;
|
||||
case 13: p = VERSION; break;
|
||||
case 17: p = PRINTABLE_OS_NAME; break;
|
||||
case 19: p = _("Please report bugs to <@EMAIL@>.\n"); break;
|
||||
|
||||
case 1:
|
||||
case 40: p = _("Usage: gpgconf [options] (-h for help)");
|
||||
case 40: p = _("Usage: @GPGCONF@ [options] (-h for help)");
|
||||
break;
|
||||
case 41:
|
||||
p = _("Syntax: gpgconf [options]\n"
|
||||
"Manage configuration options for tools of the GnuPG system\n");
|
||||
p = _("Syntax: @GPGCONF@ [options]\n"
|
||||
"Manage configuration options for tools of the @GNUPG@ system\n");
|
||||
break;
|
||||
|
||||
default: p = NULL; break;
|
||||
|
@ -350,10 +350,11 @@ main (int argc, char **argv)
|
|||
es_fprintf (outfp, "dirmngr-socket:%s\n",
|
||||
gc_percent_escape (dirmngr_socket_name ()));
|
||||
{
|
||||
char *infostr = getenv ("GPG_AGENT_INFO");
|
||||
char *infostr = getenv (GPG_AGENT_INFO_NAME);
|
||||
|
||||
if (!infostr || !*infostr)
|
||||
infostr = make_filename (default_homedir (), "S.gpg-agent", NULL);
|
||||
infostr = make_filename (default_homedir (),
|
||||
GPG_AGENT_SOCK_NAME, NULL);
|
||||
else
|
||||
{
|
||||
char *tmp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue