Re: [PATCH] remove warnings for unused variables

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



this has been applied too

On Sat, 28 Oct 2017, Marcus Folkesson wrote:

> cipher.c: In function ‘cipher_get_keyiv’:
> cipher.c:452:26: warning: unused variable ‘c’ [-Wunused-variable]
>   const struct sshcipher *c = cc->cipher;
>                             ^
> cipher.c: In function ‘cipher_set_keyiv’:
> cipher.c:497:26: warning: unused variable ‘c’ [-Wunused-variable]
>   const struct sshcipher *c = cc->cipher;
> 
> Signed-off-by: Marcus Folkesson <marcus.folkesson@xxxxxxxxx>
> ---
>  cipher.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/cipher.c b/cipher.c
> index c3cd5dcf..349ddfb0 100644
> --- a/cipher.c
> +++ b/cipher.c
> @@ -449,8 +449,8 @@ cipher_get_keyiv_len(const struct sshcipher_ctx *cc)
>  int
>  cipher_get_keyiv(struct sshcipher_ctx *cc, u_char *iv, u_int len)
>  {
> -	const struct sshcipher *c = cc->cipher;
>  #ifdef WITH_OPENSSL
> +	const struct sshcipher *c = cc->cipher;
>   	int evplen;
>  #endif
>  
> @@ -494,8 +494,8 @@ cipher_get_keyiv(struct sshcipher_ctx *cc, u_char *iv, u_int len)
>  int
>  cipher_set_keyiv(struct sshcipher_ctx *cc, const u_char *iv)
>  {
> -	const struct sshcipher *c = cc->cipher;
>  #ifdef WITH_OPENSSL
> +	const struct sshcipher *c = cc->cipher;
>   	int evplen = 0;
>  #endif
>  
> -- 
> 2.13.1
> 
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev@xxxxxxxxxxx
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
> 
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev




[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux