Submit #2606 » 0005-bmake-local-modifications-in-order-to-make-it-compil.patch
contrib/bmake/main.c | ||
---|---|---|
const int mib[2] = { CTL_HW, HW_MACHINE_ARCH };
|
||
size_t len = sizeof(machine_arch_buf);
|
||
|
||
if (sysctl(mib, __arraycount(mib), machine_arch_buf,
|
||
if (sysctl(__DECONST(int *, mib) /* XXX */, __arraycount(mib), machine_arch_buf,
|
||
&len, NULL, 0) < 0) {
|
||
(void)fprintf(stderr, "%s: sysctl failed (%s).\n", progname,
|
||
strerror(errno));
|
contrib/bmake/var.c | ||
---|---|---|
if (strchr(name, '$')) {
|
||
cp = Var_Subst(NULL, name, VAR_GLOBAL, 0);
|
||
} else {
|
||
cp = (char *)name;
|
||
cp = __DECONST(char *,name); /* XXX */
|
||
}
|
||
ln = Hash_FindEntry(&ctxt->context, cp);
|
||
if (DEBUG(VAR)) {
|