From b6486df40eb4e37d20c387ad386248231383f0e8 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Fri, 15 Jul 2005 00:39:01 +0000 Subject: first phase of proper fix for portable string function problems (bug #4669) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6133 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channel.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'channel.c') diff --git a/channel.c b/channel.c index 2bfe485e2..ae9d98f6b 100755 --- a/channel.c +++ b/channel.c @@ -31,12 +31,6 @@ #error "You need newer zaptel! Please cvs update zaptel" #endif #endif -#ifdef __FreeBSD__ -#include -#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); -- cgit v1.2.3