]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile
authorRoy Marples <roy@marples.name>
Fri, 7 Feb 2014 20:33:43 +0000 (20:33 +0000)
committerRoy Marples <roy@marples.name>
Fri, 7 Feb 2014 20:33:43 +0000 (20:33 +0000)
platform-bsd.c

index 0874474569073fd0343a3e1e3193cfc8508ce2e3..fcc465a63552093bccba70f3ef89d136ba347025 100644 (file)
@@ -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);
 }