[asterisk-commits] mnicholson: branch group/asterisk-cpp r168758 - /team/group/asterisk-cpp/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jan 16 10:05:09 CST 2009
Author: mnicholson
Date: Fri Jan 16 10:05:09 2009
New Revision: 168758
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=168758
Log:
Cast unsigned short to enum type in main/event.c
Modified:
team/group/asterisk-cpp/main/event.c
Modified: team/group/asterisk-cpp/main/event.c
URL: http://svn.digium.com/svn-view/asterisk/team/group/asterisk-cpp/main/event.c?view=diff&rev=168758&r1=168757&r2=168758
==============================================================================
--- team/group/asterisk-cpp/main/event.c (original)
+++ team/group/asterisk-cpp/main/event.c Fri Jan 16 10:05:09 2009
@@ -770,7 +770,7 @@
return -1;
ie = (struct ast_event_ie *) ( ((char *) *event) + event_len );
- ie->ie_type = htons(ie_type);
+ ie->ie_type = static_cast<ast_event_ie_type>(htons(ie_type));
ie->ie_payload_len = htons(data_len);
memcpy(ie->ie_payload, data, data_len);
@@ -821,7 +821,7 @@
if (!(event = (struct ast_event *) ast_calloc(1, sizeof(*event))))
return NULL;
- event->type = htons(type);
+ event->type = static_cast<ast_event_type>(htons(type));
event->event_len = htons(sizeof(*event));
AST_LIST_TRAVERSE(&ie_vals, ie_val, entry) {
More information about the asterisk-commits
mailing list