[asterisk-commits] russell: trunk r81355 - /trunk/main/event.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 29 14:33:58 CDT 2007


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=81355&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);
 }
 




More information about the asterisk-commits mailing list