ref: 80ecdec0ec82f1cdfba26c67d425cbc72aa46f3f
parent: 375d8f437013d0d5106e6c8c6d8dd79db6de456a
parent: 52e4e51b50589ecb2b06559c28b7ce9f682815be
author: cinap_lenrek <[email protected]>
date: Wed Dec 11 18:53:10 EST 2019
merge
--- a/sys/src/9/port/devcons.c
+++ b/sys/src/9/port/devcons.c
@@ -913,7 +913,8 @@
vlong delta;
long period;
- n--;
+ if(--n <= 0)
+ error(Ebadtimectl);
p = (uchar*)buf + 1;
switch(*buf){
case 'n':
@@ -938,7 +939,7 @@
todsetfreq(fasthz);
break;
}
- return n;
+ return n+1;
}
void