summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGert Doering <gert@greenie.muc.de>2014-01-10 17:25:41 +0100
committerGert Doering <gert@greenie.muc.de>2014-01-11 12:36:50 +0100
commit672943fbef58c444913a6d378fbd532f9a0c8605 (patch)
treed1c2b8dbebc6a5fcfa3bb4042f635a827e666d3f /src
parent7efaca734b8d633441ec3d7def2a2768864dedcf (diff)
downloadopenvpn-672943fbef58c444913a6d378fbd532f9a0c8605.tar.gz
openvpn-672943fbef58c444913a6d378fbd532f9a0c8605.tar.xz
openvpn-672943fbef58c444913a6d378fbd532f9a0c8605.zip
remove some 'unused variable' warnings
Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: David Sommerseth <dazo@users.sourceforge.net> Acked-by: Arne Schwabe <arne@rfc2549.org> Message-Id: <1389371142-26705-1-git-send-email-gert@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/8197
Diffstat (limited to 'src')
-rw-r--r--src/openvpn/comp-lz4.c1
-rw-r--r--src/openvpn/options.c2
-rw-r--r--src/openvpn/ssl.c3
3 files changed, 3 insertions, 3 deletions
diff --git a/src/openvpn/comp-lz4.c b/src/openvpn/comp-lz4.c
index afa43b1..4651148 100644
--- a/src/openvpn/comp-lz4.c
+++ b/src/openvpn/comp-lz4.c
@@ -64,7 +64,6 @@ lz4_compress (struct buffer *buf, struct buffer work,
struct compress_context *compctx,
const struct frame* frame)
{
- int result;
bool compressed = false;
if (buf->len <= 0)
diff --git a/src/openvpn/options.c b/src/openvpn/options.c
index 0803da7..9e21d5a 100644
--- a/src/openvpn/options.c
+++ b/src/openvpn/options.c
@@ -2425,7 +2425,9 @@ options_postprocess_mutate_ce (struct options *o, struct connection_entry *ce)
static void
options_postprocess_mutate_invariant (struct options *options)
{
+#ifdef WIN32
const int dev = dev_type_enum (options->dev, options->dev_type);
+#endif
/*
* In forking TCP server mode, you don't need to ifconfig
diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl.c
index 15518ca..c61701a 100644
--- a/src/openvpn/ssl.c
+++ b/src/openvpn/ssl.c
@@ -1331,7 +1331,7 @@ tls1_P_hash(const md_kt_t *md_kt,
int olen)
{
struct gc_arena gc = gc_new ();
- int chunk,n;
+ int chunk;
hmac_ctx_t ctx;
hmac_ctx_t ctx_tmp;
uint8_t A1[MAX_HMAC_KEY_LENGTH];
@@ -1357,7 +1357,6 @@ tls1_P_hash(const md_kt_t *md_kt,
hmac_ctx_update(&ctx,seed,seed_len);
hmac_ctx_final(&ctx, A1);
- n=0;
for (;;)
{
hmac_ctx_reset(&ctx);