ref: cae5acd68c44a6e94b0a2b0ba3a18d160012efdb
parent: 13a39f37397c64f8677f071d6ba3e3fcf55625ae
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Aug 3 12:53:50 EDT 2018
acme: pass pointer to int type to avoid pointer to int cast warning
--- a/sys/src/cmd/acme/exec.c
+++ b/sys/src/cmd/acme/exec.c
@@ -1120,9 +1120,7 @@
static void
fixindent(Window *w, void *v)
{- int t;
-
- t = (int)v;
+ int t = *(int*)v;
w->indent[t] = globalindent[t];
}
@@ -1146,7 +1144,7 @@
ival = indentval(arg, narg-na, type);
}
if(ival == IGlobal)
- allwindows(fixindent, (void*)type);
+ allwindows(fixindent, &type);
else if(w != nil && ival >= 0)
w->indent[type] = ival;
}
--
⑨