From: Roy Marples Date: Sun, 2 Jun 2013 05:38:59 +0000 (+0000) Subject: Fix compiler warning X-Git-Tag: v5.99.7~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7784695dcc1b7ac95a08287856e1700960e6c812;p=thirdparty%2Fdhcpcd.git Fix compiler warning --- diff --git a/if-options.c b/if-options.c index 993ddca8..11b5e80b 100644 --- a/if-options.c +++ b/if-options.c @@ -961,7 +961,9 @@ parse_option(struct if_options *ifo, int opt, const char *arg) *fp++ = '\0'; errno = 0; l = strtol(arg, &np, 0); - if (l >= 0 && l <= UINT32_MAX && errno == 0 && *np == '\0') { + if (l >= 0 && l <= (long)UINT32_MAX && + errno == 0 && *np == '\0') + { u32 = htonl(l); memcpy(&_iaid, &u32, sizeof(_iaid)); goto got_iaid;