From 44e41b1f3a2f9313b770cd6808e5ad8549aa7110 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 13 Jul 2005 03:53:24 +0000 Subject: various needed casts --- src/cmd/acme/look.c | 6 +++--- src/cmd/acme/wind.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/cmd') diff --git a/src/cmd/acme/look.c b/src/cmd/acme/look.c index 790e6c26..000b3404 100644 --- a/src/cmd/acme/look.c +++ b/src/cmd/acme/look.c @@ -456,7 +456,7 @@ dirname(Text *t, Rune *r, int n) if(t==nil || t->w==nil) goto Rescue; if(dodollarsigns && n>=1 && r[0]=='$') - expandenv(&r, &n); + expandenv(&r, (uint*)&n); nt = t->w->tag.file->b.nc; if(nt == 0) goto Rescue; @@ -475,7 +475,7 @@ dirname(Text *t, Rune *r, int n) if(slash < 0) goto Rescue; slash++; - if(dodollarsigns && expandenv(&b, &slash)) + if(dodollarsigns && expandenv(&b, (uint*)&slash)) b = runerealloc(b, slash+n); runemove(b+slash, r, n); free(r); @@ -577,7 +577,7 @@ expandfile(Text *t, uint q0, uint q1, Expand *e) goto Isfile; else{ if(dodollarsigns && r[0] == '$') - expandenv(&r, &nname); + expandenv(&r, (uint*)&nname); else{ rs = dirname(t, r, nname); r = rs.r; diff --git a/src/cmd/acme/wind.c b/src/cmd/acme/wind.c index 802a38db..5d409a98 100644 --- a/src/cmd/acme/wind.c +++ b/src/cmd/acme/wind.c @@ -347,7 +347,7 @@ winsettag1(Window *w) ntagname = w->body.file->nname; tagname = runemalloc(ntagname); runemove(tagname, w->body.file->name, ntagname); - abbrevenv(&tagname, &ntagname); + abbrevenv(&tagname, (uint*)&ntagname); /* * XXX Why is this here instead of letting the code @@ -490,7 +490,7 @@ wincommit(Window *w, Text *t) for(i=0; itag.file->b.nc; i++) if(r[i]==' ' || r[i]=='\t') break; - expandenv(&r, &i); + expandenv(&r, (uint*)&i); if(runeeq(r, i, w->body.file->name, w->body.file->nname) == FALSE){ seq++; filemark(w->body.file); -- cgit v1.2.3