[Asterisk-code-review] Replace htobe64 with htonll (asterisk[master])

David M. Lee asteriskteam at digium.com
Fri Aug 7 23:40:56 CDT 2015


David M. Lee has uploaded a new change for review.

  https://gerrit.asterisk.org/1052

Change subject: Replace htobe64 with htonll
......................................................................

Replace htobe64 with htonll

We don't have a compatability function to fill in a missing htobe64; but
we already have one for the identical htonll.

Change-Id: Ic0a95db1c5b0041e14e6b127432fb533b97e4cac
---
M res/res_http_websocket.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/52/1052/1

diff --git a/res/res_http_websocket.c b/res/res_http_websocket.c
index 9e5c60d..7a2552e 100644
--- a/res/res_http_websocket.c
+++ b/res/res_http_websocket.c
@@ -351,7 +351,7 @@
 	if (length == 126) {
 		put_unaligned_uint16(&frame[2], htons(actual_length));
 	} else if (length == 127) {
-		put_unaligned_uint64(&frame[2], htobe64(actual_length));
+		put_unaligned_uint64(&frame[2], htonll(actual_length));
 	}
 
 	ao2_lock(session);

-- 
To view, visit https://gerrit.asterisk.org/1052
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic0a95db1c5b0041e14e6b127432fb533b97e4cac
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: David M. Lee <dlee at digium.com>



More information about the asterisk-code-review mailing list