Skip to content

Commit

Permalink
[IRDA]: Use htons() where appropriate.
Browse files Browse the repository at this point in the history
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
YOSHIFUJI Hideaki authored and David S. Miller committed Jan 28, 2008
1 parent 5661df7 commit 6d82de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/irda/iriap.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ static void iriap_getvaluebyclass_response(struct iriap_cb *self,
fp[n++] = ret_code;

/* Insert list length (MSB first) */
tmp_be16 = __constant_htons(0x0001);
tmp_be16 = htons(0x0001);
memcpy(fp+n, &tmp_be16, 2); n += 2;

/* Insert object identifier ( MSB first) */
Expand Down

0 comments on commit 6d82de9

Please sign in to comment.