[asterisk-dev] FW: [svn-commits] russell: trunk r81355 - /trunk/main/event.c
Watkins, Bradley
Bradley.Watkins at compuware.com
Wed Aug 29 14:41:47 CDT 2007
Did you really mean to change that char * back to a void *?
- Brad
-----Original Message-----
From: svn-commits-bounces at lists.digium.com
[mailto:svn-commits-bounces at lists.digium.com] On Behalf Of SVN commits
to the Digium repositories
Sent: Wednesday, August 29, 2007 3:34 PM
To: asterisk-commits at lists.digium.com; svn-commits at lists.digium.com
Subject: [svn-commits] russell: trunk r81355 - /trunk/main/event.c
Author: russell
Date: Wed Aug 29 14:33:57 2007
New Revision: 81355
URL: http://svn.digium.com/view/asterisk?view=rev&rev=81355
Log:
Fix parenthesis from my last commit
Modified:
trunk/main/event.c
Modified: trunk/main/event.c
URL:
http://svn.digium.com/view/asterisk/trunk/main/event.c?view=diff&rev=813
55&r1=81354&r2=81355
========================================================================
======
--- trunk/main/event.c (original)
+++ trunk/main/event.c Wed Aug 29 14:33:57 2007
@@ -116,7 +116,7 @@
static void ast_event_ie_val_destroy(struct ast_event_ie_val *ie_val)
{
if (ie_val->ie_pltype == AST_EVENT_IE_PLTYPE_STR)
- ast_free((char *) ie_val->payload.str);
+ ast_free((void *) ie_val->payload.str);
ast_free(ie_val);
}
@@ -371,7 +371,7 @@
int ast_event_iterator_next(struct ast_event_iterator *iterator)
{
- iterator->ie = (struct ast_event_ie *) ( ((char *) iterator->ie)
+ sizeof(*iterator->ie) ) + ntohs(iterator->ie->ie_payload_len);
+ iterator->ie = (struct ast_event_ie *) ( ((char *) iterator->ie)
+ sizeof(*iterator->ie) + ntohs(iterator->ie->ie_payload_len));
return ((iterator->event_len < (((char *) iterator->ie) - ((char
*) iterator->event))) ? -1 : 0);
}
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
svn-commits mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/svn-commits
More information about the asterisk-dev
mailing list