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 Avoid a "conversion to '__uint16_t'...
details: https://anonhg.NetBSD.org/src/rev/494432d0ebca
branches: trunk
changeset: 345135:494432d0ebca
user: martin <martin%NetBSD.org@localhost>
date: Mon May 09 20:28:08 2016 +0000
description:
Avoid a "conversion to '__uint16_t' from 'int' may alter its value"
error on some architectures (like m68k).
diffstat:
external/bsd/dhcpcd/dist/dhcp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 16caf9b3641b -r 494432d0ebca external/bsd/dhcpcd/dist/dhcp.c
--- a/external/bsd/dhcpcd/dist/dhcp.c Mon May 09 15:23:23 2016 +0000
+++ b/external/bsd/dhcpcd/dist/dhcp.c Mon May 09 20:28:08 2016 +0000
@@ -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 @@
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;
}
Home |
Main Index |
Thread Index |
Old Index