[Asterisk-cvs] asterisk acl.c,1.17,1.18
citats at lists.digium.com
citats at lists.digium.com
Wed Apr 28 13:22:00 CDT 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/home/citats/cvs/asterisk
Modified Files:
acl.c
Log Message:
Optimize inaddrcmp (a little) by making it inline
Index: acl.c
===================================================================
RCS file: /usr/cvsroot/asterisk/acl.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- acl.c 22 Apr 2004 00:20:33 -0000 1.17
+++ acl.c 28 Apr 2004 17:28:35 -0000 1.18
@@ -150,12 +150,6 @@
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;
More information about the svn-commits
mailing list