Remove unused parameter from maskcmp().
This commit is contained in:
parent
c620df3c15
commit
ddcf079cad
3 changed files with 4 additions and 4 deletions
|
@ -225,7 +225,7 @@ void sockaddrunmap(sockaddr_t *sa)
|
||||||
|
|
||||||
/* Subnet mask handling */
|
/* Subnet mask handling */
|
||||||
|
|
||||||
int maskcmp(const void *va, const void *vb, int masklen, int len)
|
int maskcmp(const void *va, const void *vb, int masklen)
|
||||||
{
|
{
|
||||||
int i, m, result;
|
int i, m, result;
|
||||||
const char *a = va;
|
const char *a = va;
|
||||||
|
|
|
@ -35,7 +35,7 @@ extern int sockaddrcmp(const sockaddr_t *, const sockaddr_t *);
|
||||||
extern void sockaddrunmap(sockaddr_t *);
|
extern void sockaddrunmap(sockaddr_t *);
|
||||||
extern void sockaddrfree(sockaddr_t *);
|
extern void sockaddrfree(sockaddr_t *);
|
||||||
extern void sockaddrcpy(sockaddr_t *, const sockaddr_t *);
|
extern void sockaddrcpy(sockaddr_t *, const sockaddr_t *);
|
||||||
extern int maskcmp(const void *, const void *, int, int);
|
extern int maskcmp(const void *, const void *, int);
|
||||||
extern void maskcpy(void *, const void *, int, int);
|
extern void maskcpy(void *, const void *, int, int);
|
||||||
extern void mask(void *, int, int);
|
extern void mask(void *, int, int);
|
||||||
extern bool maskcheck(const void *, int, int);
|
extern bool maskcheck(const void *, int, int);
|
||||||
|
|
|
@ -342,7 +342,7 @@ subnet_t *lookup_subnet_ipv4(const ipv4_t *address)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!maskcmp(address, &p->net.ipv4.address, p->net.ipv4.prefixlength, sizeof(ipv4_t)))
|
if(!maskcmp(address, &p->net.ipv4.address, p->net.ipv4.prefixlength))
|
||||||
break;
|
break;
|
||||||
else {
|
else {
|
||||||
/* Otherwise, see if there is a bigger enclosing subnet */
|
/* Otherwise, see if there is a bigger enclosing subnet */
|
||||||
|
@ -378,7 +378,7 @@ subnet_t *lookup_subnet_ipv6(const ipv6_t *address)
|
||||||
if(p->type != SUBNET_IPV6)
|
if(p->type != SUBNET_IPV6)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if(!maskcmp(address, &p->net.ipv6.address, p->net.ipv6.prefixlength, sizeof(ipv6_t)))
|
if(!maskcmp(address, &p->net.ipv6.address, p->net.ipv6.prefixlength))
|
||||||
break;
|
break;
|
||||||
else {
|
else {
|
||||||
/* Otherwise, see if there is a bigger enclosing subnet */
|
/* Otherwise, see if there is a bigger enclosing subnet */
|
||||||
|
|
Loading…
Reference in a new issue