diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-15 00:39:01 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-15 00:39:01 +0000 |
commit | 4903f50fe80f104312ba89e7481ceedd49f39fd8 (patch) | |
tree | 991a3938a32d6c27484076dd80d878ebad6f9010 /channel.c | |
parent | cf67ae6727542678c4c23782af7c6418ec3290a7 (diff) |
first phase of proper fix for portable string function problems (bug #4669)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6133 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-x | channel.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -31,12 +31,6 @@ #error "You need newer zaptel! Please cvs update zaptel" #endif #endif -#ifdef __FreeBSD__ -#include <strfunc.h> -#if (!defined(__STRFUNC_H__) && (!defined(STRFUNC_H))) -#error "Please install the strfunc library located in the ports collection at /usr/ports/devel/libstrfunc" -#endif -#endif #include "asterisk.h" @@ -1759,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 = strndup((char *)f->data, f->datalen); /* dup and break */ + else if (f->frametype == AST_FRAME_TEXT) { /* what we want */ + buf = ast_strndup((char *) f->data, f->datalen); /* dup and break */ done = 1; } ast_frfree(f); |