mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Fix parenthesis from my last commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81355 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -116,7 +116,7 @@ static AST_RWLIST_HEAD(ast_event_ref_list, ast_event_ref) ast_event_cache[AST_EV
|
||||
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 @@ void ast_event_iterator_init(struct ast_event_iterator *iterator, const struct a
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user