diff options
author | Adriaan de Jong <dejong@fox-it.com> | 2011-10-31 16:29:20 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2011-11-21 11:51:39 +0100 |
commit | be960aad88a78967e6425be0d1dc36ea1af6f584 (patch) | |
tree | 5c4726ce54e3cb45bda944ab055750a340b77490 /crypto.c | |
parent | 1d90851ed012775b6c85379ee263c5f6ffc2021e (diff) | |
download | openvpn-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) { |