From ca9ba719b6f4ef598bc3dc71bdee05d11d0c7687 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Fri, 21 Jul 2006 17:31:28 +0000 Subject: Merge a new implementation of ast_inet_ntoa, our thread safe replacement for inet_ntoa, which uses thread specific data (aka thread local storage) instead of stack allocatted buffers to store the result. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38042 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- pbx/dundi-parser.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pbx/dundi-parser.c') diff --git a/pbx/dundi-parser.c b/pbx/dundi-parser.c index 46e692d6b..786f0a2ac 100644 --- a/pbx/dundi-parser.c +++ b/pbx/dundi-parser.c @@ -474,7 +474,6 @@ void dundi_showframe(struct dundi_hdr *fhi, int rx, struct sockaddr_in *sin, int char *subclass; char tmp[256]; char retries[20]; - char iabuf[INET_ADDRSTRLEN]; if (ntohs(fhi->dtrans) & DUNDI_FLAG_RETRANS) strcpy(retries, "Yes"); else @@ -499,7 +498,7 @@ void dundi_showframe(struct dundi_hdr *fhi, int rx, struct sockaddr_in *sin, int snprintf(tmp, (int)sizeof(tmp), "%s Flags: %s STrans: %5.5d DTrans: %5.5d [%s:%d]%s\n", (rx > 1) ? " " : "", subclass, ntohs(fhi->strans) & ~DUNDI_FLAG_RESERVED, ntohs(fhi->dtrans) & ~DUNDI_FLAG_RETRANS, - ast_inet_ntoa(iabuf, sizeof(iabuf), sin->sin_addr), ntohs(sin->sin_port), + ast_inet_ntoa(sin->sin_addr), ntohs(sin->sin_port), fhi->cmdresp & 0x80 ? " (Final)" : ""); outputf(tmp); dump_ies(fhi->ies, rx > 1, datalen); -- cgit v1.2.3