summaryrefslogtreecommitdiffstats
path: root/scd/scdaemon.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-06-09 18:53:51 +0200
committerWerner Koch <wk@gnupg.org>2010-06-09 18:53:51 +0200
commitc3f08dcb7266efeac84f5f720ec0a353a45e950d (patch)
tree51501aa7d0e6dadb80576a1e982fdfde871bd2ad /scd/scdaemon.c
parent2010-06-08 Marcus Brinkmann <marcus@g10code.de> (diff)
downloadgnupg2-c3f08dcb7266efeac84f5f720ec0a353a45e950d.tar.xz
gnupg2-c3f08dcb7266efeac84f5f720ec0a353a45e950d.zip
Merged Dirmngr with GnuPG.
A few code changes to support dirmngr.
Diffstat (limited to 'scd/scdaemon.c')
-rw-r--r--scd/scdaemon.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/scd/scdaemon.c b/scd/scdaemon.c
index e5d8ea911..93fc58a93 100644
--- a/scd/scdaemon.c
+++ b/scd/scdaemon.c
@@ -269,14 +269,15 @@ my_strusage (int level)
}
-static unsigned long
-tid_log_callback (void)
+static int
+tid_log_callback (unsigned long *rvalue)
{
#ifdef PTH_HAVE_PTH_THREAD_ID
- return pth_thread_id ();
+ *rvalue = pth_thread_id ();
#else
- return (unsigned long)pth_self ();
+ *rvalue = (unsigned long)pth_self ();
#endif
+ return 2; /* Use use hex representation. */
}
@@ -551,7 +552,7 @@ main (int argc, char **argv )
break;
case oDebugDisableTicker: ticker_disabled = 1; break;
case oDebugLogTid:
- log_set_get_tid_callback (tid_log_callback);
+ log_set_pid_suffix_cb (tid_log_callback);
break;
case oOptions: