1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

avoid warnings for signed/unsigned comparison and unused arguments

This commit is contained in:
Luigi Rizzo 2016-01-26 22:45:05 +00:00
parent c9a48e1dde
commit 4d85bfeb07
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=294855

View File

@ -81,7 +81,7 @@ heap_resize(struct dn_heap *h, unsigned int new_size)
{
struct dn_heap_entry *p;
if (h->size >= new_size ) /* have enough room */
if ((unsigned int)h->size >= new_size ) /* have enough room */
return 0;
#if 1 /* round to the next power of 2 */
new_size |= new_size >> 1;
@ -419,6 +419,8 @@ dn_ht_init(struct dn_ht *ht, int buckets, int ofs,
static int
do_del(void *obj, void *arg)
{
(void)obj;
(void)arg;
return DNHT_SCAN_DEL;
}