bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH 1/7] libihash: fix type of max_load


From: Samuel Thibault
Subject: Re: [PATCH 1/7] libihash: fix type of max_load
Date: Tue, 13 May 2014 23:10:28 +0200
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Justus Winter, le Tue 13 May 2014 21:02:50 +0200, a écrit :
> Previously, int was used for the field max_load of struct hurd_ihash.
> There is no reason for this as far as I can tell.  Furthermore,
> hurd_ihash_set_max_load takes an unsigned int max_load.

Ack.

> * libihash/ihash.h (struct hurd_ihash): Use unsigned int for field
> max_load.
> ---
>  libihash/ihash.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libihash/ihash.h b/libihash/ihash.h
> index 6bdc925..a24f384 100644
> --- a/libihash/ihash.h
> +++ b/libihash/ihash.h
> @@ -80,7 +80,7 @@ struct hurd_ihash
>    intptr_t locp_offset;
>  
>    /* The maximum load factor in percent.  */
> -  int max_load;
> +  unsigned int max_load;
>  
>    /* When freeing or overwriting an element, this function is called
>       with the value as the first argument, and CLEANUP_DATA as the
> -- 
> 2.0.0.rc0
> 

-- 
Samuel
 RM> Mauvais OS, changer d'OS (c)(r)(tm)
 J'ai windows 98 et comment faire pour changer l'os de windows 98?
 Dans ajout et suppression du programme et il ne parle pas d'os.
 -+- DN in : GNU -+- L'O.S. est las, hélas, c'est là qu'est l'os -+-



reply via email to

[Prev in Thread] Current Thread [Next in Thread]