aboutsummaryrefslogtreecommitdiffstats
path: root/common/logging.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2013-11-18 13:09:47 +0000
committerWerner Koch <[email protected]>2013-11-18 13:09:47 +0000
commitcc9a0b69b698ba436eaf777e5020532845b56236 (patch)
treecb2274c3d97fffa7020cb1e5a56373935ee094b2 /common/logging.c
parentAdd strusage macro replacement feature. (diff)
downloadgnupg-cc9a0b69b698ba436eaf777e5020532845b56236.tar.gz
gnupg-cc9a0b69b698ba436eaf777e5020532845b56236.zip
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.
Diffstat (limited to 'common/logging.c')
-rw-r--r--common/logging.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/logging.c b/common/logging.c
index f78df9141..e94cdaf3e 100644
--- a/common/logging.c
+++ b/common/logging.c
@@ -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);