Optimize inaddrcmp (a little) by making it inline

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2800 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
James Golovich
2004-04-28 17:28:35 +00:00
parent ffe885b21f
commit 8ace87616e
2 changed files with 7 additions and 7 deletions

6
acl.c
View File

@@ -150,12 +150,6 @@ int ast_get_ip(struct sockaddr_in *sin, char *value)
return 0;
}
int inaddrcmp(struct sockaddr_in *sin1, struct sockaddr_in *sin2)
{
return ((sin1->sin_addr.s_addr != sin2->sin_addr.s_addr )
|| (sin1->sin_port != sin2->sin_port));
}
/* iface is the interface (e.g. eth0); address is the return value */
int ast_lookup_iface(char *iface, struct in_addr *address) {
int mysock, res = 0;