summaryrefslogtreecommitdiff
path: root/sys/src/cmd/acme
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-08-03 16:53:50 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2018-08-03 16:53:50 +0200
commit209a6b4b55101d58327830d7e1306dfb43ece531 (patch)
tree29be9d03acb402c662cab614ef20c974bd600465 /sys/src/cmd/acme
parent34b69979332825b78c50f37013d60cc2657f322f (diff)
acme: pass pointer to int type to avoid pointer to int cast warning
Diffstat (limited to 'sys/src/cmd/acme')
-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;
}