mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
avoid warnings for signed/unsigned comparison and unused arguments
This commit is contained in:
parent
c9a48e1dde
commit
4d85bfeb07
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue