Module Name: src Committed By: martin Date: Mon May 9 20:28:08 UTC 2016
Modified Files: src/external/bsd/dhcpcd/dist: dhcp.c Log Message: Avoid a "conversion to '__uint16_t' from 'int' may alter its value" error on some architectures (like m68k). To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/external/bsd/dhcpcd/dist/dhcp.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/dhcp.c diff -u src/external/bsd/dhcpcd/dist/dhcp.c:1.40 src/external/bsd/dhcpcd/dist/dhcp.c:1.41 --- src/external/bsd/dhcpcd/dist/dhcp.c:1.40 Mon May 9 10:15:59 2016 +++ src/external/bsd/dhcpcd/dist/dhcp.c Mon May 9 20:28:08 2016 @@ -1,5 +1,5 @@ #include <sys/cdefs.h> - __RCSID("$NetBSD: dhcp.c,v 1.40 2016/05/09 10:15:59 roy Exp $"); + __RCSID("$NetBSD: dhcp.c,v 1.41 2016/05/09 20:28:08 martin Exp $"); /* * dhcpcd - DHCP client daemon @@ -890,7 +890,7 @@ make_message(struct bootp **bootpm, cons AREA_CHECK(2); *p++ = DHO_MAXMESSAGESIZE; *p++ = 2; - sz = htons((uint16_t)mtu - IP_UDP_SIZE); + sz = htons((uint16_t)(mtu - IP_UDP_SIZE)); memcpy(p, &sz, 2); p += 2; }