From: Roy Marples Date: Sat, 31 Jan 2015 01:03:24 +0000 (+0000) Subject: Fix cast X-Git-Tag: v6.8.0~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dff2cb37141ab252ab343ab50083630b384c2e6;p=thirdparty%2Fdhcpcd.git Fix cast --- diff --git a/if-options.c b/if-options.c index 3afd8e9d..78e2b949 100644 --- a/if-options.c +++ b/if-options.c @@ -1481,7 +1481,7 @@ err_sla: return -1; } *fp++ = '\0'; - u = strtou(arg, NULL, 0, 0, UINT32_MAX, &e); + u = (uint32_t)strtou(arg, NULL, 0, 0, UINT32_MAX, &e); if (e) { syslog(LOG_ERR, "invalid code: %s", arg); return -1;