ref: a163296abcd761fab9bfeae31de4a8a89d6f15c1
parent: 172d53d198ba7379cbcff7192b080039740720ab
author: kvik <[email protected]>
date: Sun Dec 27 11:14:33 EST 2020
mq: appease "non-interruptable temporary" warnings These warnings are vacuous since an interrupted userspace process has its state fully saved and restored, but they are more annoying to look at than it is to rewrite the code that produces them.
--- a/src/mq.c
+++ b/src/mq.c
@@ -211,12 +211,12 @@
/* request size and offset, chunk size and offset, total read */
vlong rn, ro, n, o, t;
- ro = o = t = 0;
+ ro = 0; o = 0; t = 0;
rn = r->ifcall.count;
w = c->cursor;
foreach(Write*, w){
w = ptr;
- for(o = c->offset; (n = w->count - o) > 0; o += n){
+ for(o = c->offset; n = w->count - o, n > 0; o += n){
if(t == rn)
goto done;
if(n > rn - ro)