From: Russell Bryant Date: Thu, 19 Jul 2007 14:46:49 +0000 (+0000) Subject: Remove some debug code that was added in revision 75894, which removed some X-Git-Tag: 1.6.0-beta1~3^2~2009 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3b1eab2f38a1f4b1dca1913eca82121ed1d7946;p=thirdparty%2Fasterisk.git Remove some debug code that was added in revision 75894, which removed some other debug code. :) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75911 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/acl.c b/main/acl.c index d3aa0c670e..e15f4a336e 100644 --- a/main/acl.c +++ b/main/acl.c @@ -334,10 +334,6 @@ int ast_ouraddrfor(struct in_addr *them, struct in_addr *us) int s; struct sockaddr_in sin; socklen_t slen; - static int prof = -1; - if (prof == -1) - prof = ast_add_profile("ast_ouraddrfor", 0); - ast_mark(prof, 1); s = socket(PF_INET, SOCK_DGRAM, 0); if (s < 0) { ast_log(LOG_WARNING, "Cannot create socket\n"); @@ -359,7 +355,6 @@ int ast_ouraddrfor(struct in_addr *them, struct in_addr *us) } close(s); *us = sin.sin_addr; - ast_mark(prof, 0); return 0; }