mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +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
|
@ -460,7 +460,7 @@ set_file_fd (const char *name, int fd)
|
|||
{
|
||||
HANDLE hd;
|
||||
|
||||
ActivateDevice (L"Drivers\\GnuPG_Log", 0);
|
||||
ActivateDevice (L"Drivers\\"GNUPG_NAME"_Log", 0);
|
||||
/* Ignore a filename and write the debug output to the GPG2:
|
||||
device. */
|
||||
hd = CreateFile (L"GPG2:", GENERIC_WRITE,
|
||||
|
@ -636,7 +636,7 @@ do_logv (int level, int ignore_arg_ptr, const char *fmt, va_list arg_ptr)
|
|||
|
||||
tmp = (no_registry
|
||||
? NULL
|
||||
: read_w32_registry_string (NULL, "Software\\GNU\\GnuPG",
|
||||
: read_w32_registry_string (NULL, "Software\\GNU\\"GNUPG_NAME,
|
||||
"DefaultLogFile"));
|
||||
log_set_file (tmp && *tmp? tmp : NULL);
|
||||
jnlib_free (tmp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue