From: Roy Marples Date: Fri, 7 Feb 2014 20:33:43 +0000 (+0000) Subject: Fix compile X-Git-Tag: v6.3.0~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2a033f5894a91b9b25b706344fcdff4d5f20721;p=thirdparty%2Fdhcpcd.git Fix compile --- diff --git a/platform-bsd.c b/platform-bsd.c index 08744745..fcc465a6 100644 --- a/platform-bsd.c +++ b/platform-bsd.c @@ -58,10 +58,10 @@ hardware_platform(char *str, size_t len) { int mib[2] = { CTL_HW, HW_MACHINE_ARCH }; char march[SYS_NMLN]; - size_t len = sizeof(march); + size_t marchlen = sizeof(march); if (sysctl(mib, sizeof(mib) / sizeof(mib[0]), - march, &len, NULL, 0) != 0) + march, &marchlen, NULL, 0) != 0) return -1; return snprintf(str, len, ":%s", march); }