Mercurial > hg > dhcpcd
changeset 273:56f6b2b029de draft
Use correct castings for UINT16_MAX.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 09 Jan 2008 10:17:10 +0000 |
| parents | fc66fea57edc |
| children | 7df6220e8c0e |
| files | dhcp.c |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dhcp.c Wed Jan 09 10:12:59 2008 +0000 +++ b/dhcp.c Wed Jan 09 10:17:10 2008 +0000 @@ -131,8 +131,8 @@ logger (LOG_ERR, "dhcp: unknown hardware type %d", iface->family); } - if (up < 0 || up > UINT16_MAX) - message->secs = htons ((short) UINT16_MAX); + if (up < 0 || up > (time_t) UINT16_MAX) + message->secs = htons ((uint16_t) UINT16_MAX); else message->secs = htons (up); message->xid = xid;
