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

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


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

  https://gerrit.asterisk.org/1050

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/50/1050/1

diff --git a/res/res_http_websocket.c b/res/res_http_websocket.c
index 7aa44c0..f12c729 100644
--- a/res/res_http_websocket.c
+++ b/res/res_http_websocket.c
@@ -244,7 +244,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/1050
To unsubscribe, visit https://gerrit.asterisk.org/settings

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



More information about the asterisk-code-review mailing list