]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix silly warning on s390
authorRoy Marples <roy@marples.name>
Fri, 15 Dec 2006 11:44:23 +0000 (11:44 +0000)
committerRoy Marples <roy@marples.name>
Fri, 15 Dec 2006 11:44:23 +0000 (11:44 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index 05c9c078a7571cf27f9cfe87de4a8871f6d15868..0ca862fc21a1c273cc64ca14edff604e70780f3c 100644 (file)
--- 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;