mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
fix build with -Wformat -Wmissing-prototypes
This commit is contained in:
parent
6543769220
commit
ce2cb79269
1 changed files with 2 additions and 2 deletions
|
|
@ -162,7 +162,7 @@ netmap_ofstophys(vm_offset_t offset)
|
|||
offset % p[i]->_objsize;
|
||||
}
|
||||
D("invalid ofs 0x%x out of 0x%x 0x%x 0x%x", o,
|
||||
p[0]->_memtotal, p[0]->_memtotal + p[1]->_memtotal,
|
||||
(u_int)p[0]->_memtotal, p[0]->_memtotal + p[1]->_memtotal,
|
||||
p[0]->_memtotal + p[1]->_memtotal + p[2]->_memtotal);
|
||||
return 0; // XXX bad address
|
||||
}
|
||||
|
|
@ -173,7 +173,7 @@ netmap_ofstophys(vm_offset_t offset)
|
|||
* Algorithm: scan until we find the cluster, then add the
|
||||
* actual offset in the cluster
|
||||
*/
|
||||
ssize_t
|
||||
static ssize_t
|
||||
netmap_obj_offset(struct netmap_obj_pool *p, const void *vaddr)
|
||||
{
|
||||
int i, k = p->clustentries, n = p->objtotal;
|
||||
|
|
|
|||
Loading…
Reference in a new issue