aboutsummaryrefslogtreecommitdiffstats
path: root/agent/protect.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-04-11 08:24:15 +0000
committerWerner Koch <[email protected]>2016-04-12 12:38:44 +0000
commit7faf131c8b8710419df3dc13a1228d1977c55f53 (patch)
tree06b5dfdd889488bdc4c2dda68330a52c73d57131 /agent/protect.c
parentdoc: Point to RFC-4880 for keyedit subcommand "tsign". (diff)
downloadgnupg-7faf131c8b8710419df3dc13a1228d1977c55f53.tar.gz
gnupg-7faf131c8b8710419df3dc13a1228d1977c55f53.zip
indent: Help Emacs not to get confused by conditional compilation.
* agent/protect.c (calibrate_get_time) [W32]: Use separate function calls for W32 and W32CE. -- Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'agent/protect.c')
-rw-r--r--agent/protect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/agent/protect.c b/agent/protect.c
index cdb39fd13..f037703d0 100644
--- a/agent/protect.c
+++ b/agent/protect.c
@@ -95,11 +95,13 @@ calibrate_get_time (struct calibrate_time_s *data)
#ifdef HAVE_W32_SYSTEM
# ifdef HAVE_W32CE_SYSTEM
GetThreadTimes (GetCurrentThread (),
+ &data->creation_time, &data->exit_time,
+ &data->kernel_time, &data->user_time);
# else
GetProcessTimes (GetCurrentProcess (),
-# endif
&data->creation_time, &data->exit_time,
&data->kernel_time, &data->user_time);
+# endif
#else
struct tms tmp;