ref: 91de956e2a1eb4748c5724a9cd893a323084e2f6
parent: b0472fa6c7f5e5d50a966804197a3e40d41b4a9c
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Jan 6 14:25:38 EST 2023
devdraw: avoid parentesis warnings from gcc
--- a/kern/devdraw.c
+++ b/kern/devdraw.c
@@ -624,7 +624,7 @@
dscreen = this->next;
goto Found;
}
- while(next = ds->next){ /* assign = */
+ while((next = ds->next) != nil){
if(next == this){
ds->next = this->next;
goto Found;
@@ -697,7 +697,7 @@
free(this);
return;
}
- while(next = cs->next){ /* assign = */
+ while((next = cs->next) != nil){
if(next == this){
cs->next = this->next;
drawfreedscreen(this->dscreen);
@@ -721,7 +721,7 @@
drawfreedimage(d);
return;
}
- while(next = d->next){ /* assign = */
+ while((next = d->next) != nil){
if(next->id == id){
d->next = next->next;
drawfreedimage(next);
@@ -1097,7 +1097,7 @@
if(QID(c->qid) == Qctl)
cl->busy = 0;
if((c->flag&COPEN) && (decref(&cl->r)==0)){
- while(r = cl->refresh){ /* assign = */
+ while((r = cl->refresh) != nil){
cl->refresh = r->next;
free(r);
}