summaryrefslogtreecommitdiff
path: root/channel.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-07-15 22:06:15 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-07-15 22:06:15 +0000
commit9d8d86e19de01ea94e3106d78af8aa44e6670745 (patch)
tree72a1219d1b5eeaaa08f28862bb67263d906f91ce /channel.c
parentda1d0363cae0088a30c835393fa9cd5051f00a2f (diff)
phase two of string portability stuff:
don't need ast_ prefixes on functions use individual #defines for function presence add vasprintf to portability library git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channel.c b/channel.c
index ae9d98f6b..e97ae91c3 100755
--- a/channel.c
+++ b/channel.c
@@ -1753,8 +1753,8 @@ char *ast_recvtext(struct ast_channel *chan, int timeout)
break; /* no frame */
if (f->frametype == AST_FRAME_CONTROL && f->subclass == AST_CONTROL_HANGUP)
done = 1; /* force a break */
- else if (f->frametype == AST_FRAME_TEXT) { /* what we want */
- buf = ast_strndup((char *) f->data, f->datalen); /* dup and break */
+ else if (f->frametype == AST_FRAME_TEXT) { /* what we want */
+ buf = strndup((char *) f->data, f->datalen); /* dup and break */
done = 1;
}
ast_frfree(f);