From: Roy Marples Date: Fri, 15 Dec 2006 11:44:23 +0000 (+0000) Subject: Fix silly warning on s390 X-Git-Tag: v3.2.3~343 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed7d8727caa1775e520ca86e188b19bde5d8d61b;p=thirdparty%2Fdhcpcd.git Fix silly warning on s390 --- diff --git a/dhcp.c b/dhcp.c index 05c9c078..0ca862fc 100644 --- a/dhcp.c +++ b/dhcp.c @@ -90,7 +90,7 @@ size_t send_message (const interface_t *iface, const dhcp_t *dhcp, message.hwtype = ARPHRD_ETHER; message.hwlen = ETHER_ADDR_LEN; if (up < 0 || up > UINT16_MAX) - message.secs = htons (UINT16_MAX); + message.secs = htons ((short) UINT16_MAX); else message.secs = htons (up); message.xid = xid;