diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-21 17:31:28 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-21 17:31:28 +0000 |
commit | f395a52a02593f8556bd3786addc671d3f4250e0 (patch) | |
tree | 9a03027276c525f44c08eb5dc4d7b9035fa697c9 /pbx/dundi-parser.c | |
parent | c7eeabcdd20eb9b7fad38b03cd0784854c0813c9 (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@38042 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/dundi-parser.c')
-rw-r--r-- | pbx/dundi-parser.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |