Re: [PATCH conntrack-tools 2/3] conntrackd: use size_t for element indices

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

 



Hi,

Could you describe why these are needed?

Thanks!

On Fri, Mar 01, 2024 at 12:07:30PM -0500, Donald Yandt wrote:
> Signed-off-by: Donald Yandt <donald.yandt@xxxxxxxxx>
> ---
>  src/vector.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/src/vector.c b/src/vector.c
> index 7f9bc3c..ac1f5d9 100644
> --- a/src/vector.c
> +++ b/src/vector.c
> @@ -23,9 +23,7 @@
>  
>  struct vector {
>  	char *data;
> -	unsigned int cur_elems;
> -	unsigned int max_elems;
> -	size_t size;
> +	size_t cur_elems, max_elems, size;
>  };
>  
>  #define DEFAULT_VECTOR_MEMBERS	8
> -- 
> 2.44.0
> 
> 




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux