mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-29 15:36:13 +00:00
Merge "Replace htobe64 with htonll"
This commit is contained in:
@@ -351,7 +351,7 @@ int AST_OPTIONAL_API_NAME(ast_websocket_write)(struct ast_websocket *session, en
|
|||||||
if (length == 126) {
|
if (length == 126) {
|
||||||
put_unaligned_uint16(&frame[2], htons(actual_length));
|
put_unaligned_uint16(&frame[2], htons(actual_length));
|
||||||
} else if (length == 127) {
|
} else if (length == 127) {
|
||||||
put_unaligned_uint64(&frame[2], htobe64(actual_length));
|
put_unaligned_uint64(&frame[2], htonll(actual_length));
|
||||||
}
|
}
|
||||||
|
|
||||||
ao2_lock(session);
|
ao2_lock(session);
|
||||||
|
|||||||
Reference in New Issue
Block a user