mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
various needed casts
This commit is contained in:
parent
55d360f653
commit
44e41b1f3a
2 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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; i<w->tag.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);
|
||||
|
|
Loading…
Reference in a new issue