[asterisk-commits] mmichelson: branch group/asterisk-cpp r168426 - /team/group/asterisk-cpp/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Jan 10 21:19:18 CST 2009


Author: mmichelson
Date: Sat Jan 10 21:19:18 2009
New Revision: 168426

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=168426
Log:
jitterbuf.c compiles

Modified:
    team/group/asterisk-cpp/main/jitterbuf.c

Modified: team/group/asterisk-cpp/main/jitterbuf.c
URL: http://svn.digium.com/svn-view/asterisk/team/group/asterisk-cpp/main/jitterbuf.c?view=diff&rev=168426&r1=168425&r2=168426
==============================================================================
--- team/group/asterisk-cpp/main/jitterbuf.c (original)
+++ team/group/asterisk-cpp/main/jitterbuf.c Sat Jan 10 21:19:18 2009
@@ -83,7 +83,7 @@
 {
 	jitterbuf *jb;
 
-	if (!(jb = ast_malloc(sizeof(*jb)))) 
+	if (!(jb = (jitterbuf *) ast_malloc(sizeof(*jb)))) 
 		return NULL;
 
 	jb_reset(jb);
@@ -325,7 +325,7 @@
 
 	if ((frame = jb->free)) {
 		jb->free = frame->next;
-	} else if (!(frame = ast_malloc(sizeof(*frame)))) {
+	} else if (!(frame = (jb_frame *) ast_malloc(sizeof(*frame)))) {
 		jb_err("cannot allocate frame\n");
 		return 0;
 	}




More information about the asterisk-commits mailing list