mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
warnings (andrey)
This commit is contained in:
parent
0afb7989d3
commit
62b7fdc348
1 changed files with 3 additions and 3 deletions
|
@ -46,8 +46,8 @@ lbread(Logbuf *lb, Req *r)
|
|||
{
|
||||
if(lb->waitlast == nil)
|
||||
lb->waitlast = &lb->wait;
|
||||
*(lb->waitlast) = r;
|
||||
lb->waitlast = (Req**)&r->aux;
|
||||
*lb->waitlast = r;
|
||||
lb->waitlast = (Req**)(void*)&r->aux;
|
||||
r->aux = nil;
|
||||
lbkick(lb);
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ lbflush(Logbuf *lb, Req *r)
|
|||
{
|
||||
Req **l;
|
||||
|
||||
for(l=&lb->wait; *l; l=(Req**)&(*l)->aux){
|
||||
for(l=&lb->wait; *l; l=(Req**)(void*)&(*l)->aux){
|
||||
if(*l == r){
|
||||
*l = r->aux;
|
||||
r->aux = nil;
|
||||
|
|
Loading…
Reference in a new issue