Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/dhcpcd/dist cast htons



details:   https://anonhg.NetBSD.org/src/rev/38d7e1ea5ed9
branches:  trunk
changeset: 336930:38d7e1ea5ed9
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Mar 27 18:53:15 2015 +0000

description:
cast htons

diffstat:

 external/bsd/dhcpcd/dist/arp.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 83e6b07ba779 -r 38d7e1ea5ed9 external/bsd/dhcpcd/dist/arp.c
--- a/external/bsd/dhcpcd/dist/arp.c    Fri Mar 27 18:51:08 2015 +0000
+++ b/external/bsd/dhcpcd/dist/arp.c    Fri Mar 27 18:53:15 2015 +0000
@@ -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 @@
        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;



Home | Main Index | Thread Index | Old Index