aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/random.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2006-02-14 16:28:34 +0000
committerWerner Koch <[email protected]>2006-02-14 16:28:34 +0000
commitb121d029b5b23d36e15acfd32728a3af49ea6210 (patch)
treef4e5120f811d2e73f0b7dba9f8a2bb2fb78e2a6e /cipher/random.c
parentFixed a wrong return code with gpg --verify (diff)
downloadgnupg-1.4.3rc1.tar.gz
gnupg-1.4.3rc1.zip
about to release 1.4.3rc1gnupg-1.4.3rc1
Diffstat (limited to 'cipher/random.c')
-rw-r--r--cipher/random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cipher/random.c b/cipher/random.c
index 52e421995..3c25a2b22 100644
--- a/cipher/random.c
+++ b/cipher/random.c
@@ -380,10 +380,10 @@ set_random_seed_file( const char *name )
reasonable time to succeed. With FOR_WRITE set to true a Rite lock
will be taken. FNAME is used only for diagnostics. Returns 0 on
success or -1 on error. */
-#if LOCK_SEED_FILE
static int
lock_seed_file (int fd, const char *fname, int for_write)
{
+#if LOCK_SEED_FILE
struct flock lck;
struct timeval tv;
int backoff=0;
@@ -413,9 +413,9 @@ lock_seed_file (int fd, const char *fname, int for_write)
if (backoff < 10)
backoff++ ;
}
+#endif /*LOCK_SEED_FILE*/
return 0;
}
-#endif /*LOCK_SEED_FILE*/