Commit 6d82de9e authored by YOSHIFUJI Hideaki's avatar YOSHIFUJI Hideaki Committed by David S. Miller

[IRDA]: Use htons() where appropriate.

Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5661df7b
...@@ -579,7 +579,7 @@ static void iriap_getvaluebyclass_response(struct iriap_cb *self, ...@@ -579,7 +579,7 @@ static void iriap_getvaluebyclass_response(struct iriap_cb *self,
fp[n++] = ret_code; fp[n++] = ret_code;
/* Insert list length (MSB first) */ /* Insert list length (MSB first) */
tmp_be16 = __constant_htons(0x0001); tmp_be16 = htons(0x0001);
memcpy(fp+n, &tmp_be16, 2); n += 2; memcpy(fp+n, &tmp_be16, 2); n += 2;
/* Insert object identifier ( MSB first) */ /* Insert object identifier ( MSB first) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment