Module Name: src
Committed By: christos
Date: Fri Mar 27 18:53:15 UTC 2015
Modified Files:
src/external/bsd/dhcpcd/dist: arp.c
Log Message:
cast htons
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/bsd/dhcpcd/dist/arp.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/dhcpcd/dist/arp.c
diff -u src/external/bsd/dhcpcd/dist/arp.c:1.10 src/external/bsd/dhcpcd/dist/arp.c:1.11
--- src/external/bsd/dhcpcd/dist/arp.c:1.10 Thu Mar 26 06:26:37 2015
+++ src/external/bsd/dhcpcd/dist/arp.c Fri Mar 27 14:53:15 2015
@@ -1,5 +1,5 @@
#include <sys/cdefs.h>
- __RCSID("$NetBSD: arp.c,v 1.10 2015/03/26 10:26:37 roy Exp $");
+ __RCSID("$NetBSD: arp.c,v 1.11 2015/03/27 18:53:15 christos Exp $");
/*
* dhcpcd - DHCP client daemon
@@ -68,7 +68,7 @@ arp_send(const struct interface *ifp, in
ar.ar_pro = htons(ETHERTYPE_IP);
ar.ar_hln = ifp->hwlen;
ar.ar_pln = sizeof(sip);
- ar.ar_op = htons(op);
+ ar.ar_op = htons((uint16_t)op);
p = arp_buffer;
len = 0;