summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/acme/exec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/src/cmd/acme/exec.c b/sys/src/cmd/acme/exec.c
index baf125927..f504275a5 100644
--- a/sys/src/cmd/acme/exec.c
+++ b/sys/src/cmd/acme/exec.c
@@ -1120,9 +1120,7 @@ indentval(Rune *s, int n, int type)
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 @@ indent(Text *et, Text*, Text *argt, int type, int, Rune *arg, int narg)
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;
}