[asterisk-commits] mmichelson: branch group/asterisk-cpp r168402 - /team/group/asterisk-cpp/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Jan 10 18:29:45 CST 2009
Author: mmichelson
Date: Sat Jan 10 18:29:45 2009
New Revision: 168402
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=168402
Log:
udptl.c compiles
Modified:
team/group/asterisk-cpp/main/udptl.c
Modified: team/group/asterisk-cpp/main/udptl.c
URL: http://svn.digium.com/svn-view/asterisk/team/group/asterisk-cpp/main/udptl.c?view=diff&rev=168402&r1=168401&r2=168402
==============================================================================
--- team/group/asterisk-cpp/main/udptl.c (original)
+++ team/group/asterisk-cpp/main/udptl.c Sat Jan 10 18:29:45 2009
@@ -628,7 +628,7 @@
static int udptlread(int *id, int fd, short events, void *cbdata)
{
- struct ast_udptl *udptl = cbdata;
+ struct ast_udptl *udptl = (struct ast_udptl *) cbdata;
struct ast_frame *f;
if ((f = ast_udptl_read(udptl))) {
@@ -771,7 +771,7 @@
int i;
long int flags;
- if (!(udptl = ast_calloc(1, sizeof(*udptl))))
+ if (!(udptl = (struct ast_udptl *) ast_calloc(1, sizeof(*udptl))))
return NULL;
if (udptlfectype == 2)
@@ -909,7 +909,7 @@
seq = s->tx_seq_no & 0xFFFF;
/* Cook up the UDPTL packet, with the relevant EC info. */
- len = udptl_build_packet(s, buf, f->data.ptr, f->datalen);
+ len = udptl_build_packet(s, buf, (uint8_t *)f->data.ptr, f->datalen);
if (len > 0 && s->them.sin_port && s->them.sin_addr.s_addr) {
if ((res = sendto(s->fd, buf, len, 0, (struct sockaddr *) &s->them, sizeof(s->them))) < 0)
@@ -1153,7 +1153,7 @@
static struct ast_cli_entry cli_udptl[] = {
- AST_CLI_DEFINE(handle_cli_udptl_set_debug, "Enable/Disable UDPTL debugging")
+ ast_cli_entry(handle_cli_udptl_set_debug, "Enable/Disable UDPTL debugging")
};
static void __ast_udptl_reload(int reload)
More information about the asterisk-commits
mailing list