diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-07-21 17:31:28 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-07-21 17:31:28 +0000 |
commit | ca9ba719b6f4ef598bc3dc71bdee05d11d0c7687 (patch) | |
tree | 9a03027276c525f44c08eb5dc4d7b9035fa697c9 /pbx/dundi-parser.c | |
parent | 1861dcdff5666cbac27288f7bdfdf40104d29d4d (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: https://origsvn.digium.com/svn/asterisk/trunk@38042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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); |