summaryrefslogtreecommitdiffstats
path: root/crypto.c
diff options
context:
space:
mode:
authorAdriaan de Jong <dejong@fox-it.com>2011-10-31 16:29:20 +0100
committerDavid Sommerseth <davids@redhat.com>2011-11-21 11:51:39 +0100
commitbe960aad88a78967e6425be0d1dc36ea1af6f584 (patch)
tree5c4726ce54e3cb45bda944ab055750a340b77490 /crypto.c
parent1d90851ed012775b6c85379ee263c5f6ffc2021e (diff)
downloadopenvpn-be960aad88a78967e6425be0d1dc36ea1af6f584.tar.gz
openvpn-be960aad88a78967e6425be0d1dc36ea1af6f584.tar.xz
openvpn-be960aad88a78967e6425be0d1dc36ea1af6f584.zip
Minor cleanup to enable warning-free Windows build:
- Changed int32_t to size_t - Removed some unused variables - Added missing include files - changed ordering to ensure variable declarations are before asserts Signed-off-by: Adriaan de Jong <dejong@fox-it.com> Tested-by: Samuli Seppänen <samuli@openvpn.net> Acked-by: David Sommerseth <davids@redhat.com> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'crypto.c')
-rw-r--r--crypto.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto.c b/crypto.c
index 375d35a..e628578 100644
--- a/crypto.c
+++ b/crypto.c
@@ -1336,11 +1336,10 @@ prng_uninit (void)
void
prng_bytes (uint8_t *output, int len)
{
- static int32_t processed = 0;
+ static size_t processed = 0;
if (nonce_md)
{
- md_ctx_t ctx;
const int md_size = md_kt_size (nonce_md);
while (len > 0)
{