Re: [PATCH 2/2 libnftnl] expr: cmp: Use cmp2str() instead of directly access to array

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

 



On Mon, Aug 15, 2016 at 12:27:37PM +0200, Carlos Falgueras García wrote:

Please always add a description to your patches, even if it is only
one line to explain why we need this.

Thanks.

> Signed-off-by: Carlos Falgueras García <carlosfg@xxxxxxxxxx>
> ---
>  src/expr/cmp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/expr/cmp.c b/src/expr/cmp.c
> index 92c7364..b647b01 100644
> --- a/src/expr/cmp.c
> +++ b/src/expr/cmp.c
> @@ -267,7 +267,7 @@ static int nftnl_expr_cmp_snprintf_default(char *buf, size_t size,
>  	int len = size, offset = 0, ret;
>  
>  	ret = snprintf(buf, len, "%s reg %u ",
> -		       expr_cmp_str[cmp->op], cmp->sreg);
> +		       cmp2str(cmp->op), cmp->sreg);
>  	SNPRINTF_BUFFER_SIZE(ret, size, len, offset);
>  
>  	ret = nftnl_data_reg_snprintf(buf+offset, len, &cmp->data,
> -- 
> 2.8.3
> 
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux