On 10/01/14 17:25, Gert Doering wrote:
> Signed-off-by: Gert Doering <g...@greenie.muc.de>
> ---
>  src/openvpn/comp-lz4.c | 1 -
>  src/openvpn/options.c  | 2 ++
>  src/openvpn/ssl.c      | 3 +--
>  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);
> 

ACK.  Compiles nicely on one of my systems, changes are quite obvious too.

-- 
kind regards,

David Sommerseth

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to