]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Replace htobe64 with htonll 51/1051/1
authorDavid M. Lee <dlee@respoke.io>
Sat, 8 Aug 2015 03:11:03 +0000 (22:11 -0500)
committerDavid M. Lee <dlee@digium.com>
Sat, 8 Aug 2015 04:40:48 +0000 (23:40 -0500)
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

res/res_http_websocket.c

index db9c50a28d125135b201b6e82507459707e5c309..36aff6ccdce4859166334bc9e7c2a6479bb8ddb8 100644 (file)
@@ -349,7 +349,7 @@ int AST_OPTIONAL_API_NAME(ast_websocket_write)(struct ast_websocket *session, en
        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);