aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/rndriscos.c
diff options
context:
space:
mode:
authorStefan Bellon <[email protected]>2003-12-28 14:12:16 +0000
committerStefan Bellon <[email protected]>2003-12-28 14:12:16 +0000
commit02ae08d6ef94c461c7aa82f50fb0c111cc8ead82 (patch)
tree3cb13daf0f20df967563036646b40836d412518e /cipher/rndriscos.c
parent* keyserver.c (strip_leading_space, get_arg): New. (diff)
downloadgnupg-02ae08d6ef94c461c7aa82f50fb0c111cc8ead82.tar.gz
gnupg-02ae08d6ef94c461c7aa82f50fb0c111cc8ead82.zip
cleaned up RISC OS code and removed lots of unnecessary stuff
Diffstat (limited to '')
-rw-r--r--cipher/rndriscos.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cipher/rndriscos.c b/cipher/rndriscos.c
index ee35beadd..a0fbbc228 100644
--- a/cipher/rndriscos.c
+++ b/cipher/rndriscos.c
@@ -27,7 +27,6 @@
#include <swis.h>
#include "util.h"
-#define CryptRandom_Byte 0x51980
static const char * const cryptrandom_path[] = {
"GnuPG:CryptRandom",
@@ -47,7 +46,7 @@ rndriscos_gather_random(void (*add)(const void*, size_t, int), int requester,
size_t length, int level)
{
static int rndriscos_initialized = 0;
- int n;
+ int n, nbytes;
byte buffer[768];
if (!rndriscos_initialized)
@@ -55,7 +54,7 @@ rndriscos_gather_random(void (*add)(const void*, size_t, int), int requester,
cryptrandom_path, 1);
while (length) {
- int nbytes = length < sizeof(buffer) ? length : sizeof(buffer);
+ nbytes = length < sizeof(buffer) ? length : sizeof(buffer);
for (n = 0; n < nbytes; ++n)
if (_swix(CryptRandom_Byte, _OUT(0), &buffer[n]))