aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/rndw32.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-10-18 10:02:29 +0000
committerWerner Koch <[email protected]>2010-10-18 10:02:29 +0000
commit05febd5860f3a1d2f5d4916f3a88087c0d591bee (patch)
treefc9937ca3a90c190c16b20ff9e048db0e3bfa92b /cipher/rndw32.c
parentPrepare for 1.4.11 (diff)
downloadgnupg-1.4.11.tar.gz
gnupg-1.4.11.zip
Add a minor feature for w32.gnupg-1.4.11
Diffstat (limited to 'cipher/rndw32.c')
-rw-r--r--cipher/rndw32.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/cipher/rndw32.c b/cipher/rndw32.c
index 9954cafd7..2d107e009 100644
--- a/cipher/rndw32.c
+++ b/cipher/rndw32.c
@@ -477,9 +477,16 @@ slow_gatherer_windowsNT( void (*add)(const void*, size_t, int), int requester )
* worst-case estimate which is usually nowhere near the actual amount
* required. For example it may report that 128K of memory is required,
* but only return 64K of data */
-#warning How shall we disable get performacne data
- if (0)
- log_debug ("Warning: get performance data disabled\n");
+ if (getenv("GNUPG_RNDW32_NOPERF"))
+ {
+ static int shown;
+
+ if (!shown)
+ {
+ shown = 1;
+ g10_log_info ("note: get performance data has been disabled\n");
+ }
+ }
else
{ pPerfData = xmalloc (cbPerfData);
for (;;) {