devdraw: more cleanup, clearer locking

This commit is contained in:
Russ Cox 2020-01-10 00:11:55 -05:00
parent b1a086dee9
commit 41547af3f6
8 changed files with 331 additions and 315 deletions

View file

@ -365,7 +365,7 @@ runmsg(Wsysmsg *m)
n = m->count;
if(n > sizeof buf)
n = sizeof buf;
n = _drawmsgread(buf, n);
n = draw_dataread(buf, n);
if(n < 0)
replyerror(m);
else{
@ -376,7 +376,7 @@ runmsg(Wsysmsg *m)
break;
case Twrdraw:
if(_drawmsgwrite(m->data, m->count) < 0)
if(draw_datawrite(m->data, m->count) < 0)
replyerror(m);
else
replymsg(m);