summaryrefslogtreecommitdiffstats
path: root/src/cmd/acme/look.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-07-13 03:53:24 +0000
committerrsc <devnull@localhost>2005-07-13 03:53:24 +0000
commit44e41b1f3a2f9313b770cd6808e5ad8549aa7110 (patch)
tree52e8c3bbad37321befc488aa7bf5211779589089 /src/cmd/acme/look.c
parent55d360f653add52055c39d7989745bf72d6df27a (diff)
downloadplan9port-44e41b1f3a2f9313b770cd6808e5ad8549aa7110.tar.gz
plan9port-44e41b1f3a2f9313b770cd6808e5ad8549aa7110.zip
various needed casts
Diffstat (limited to 'src/cmd/acme/look.c')
-rw-r--r--src/cmd/acme/look.c6
1 files changed, 3 insertions, 3 deletions
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;