Hello tech@,

I noticed that the EXAMPLE in the ratecheck.9 manual page declares
the following variables:

struct timeval drv_lasterr1time;   /* time of last err1 message */
struct timeval drv_lasterr2time;   /* time of last err2 message */

However the code later on actually uses the following ones:

drv_lasterr1notice
drv_lasterr2notice

This patch simply matches them up again.

-- 
Bryan

Index: ratecheck.9
===================================================================
RCS file: /cvs/src/share/man/man9/ratecheck.9,v
retrieving revision 1.11
diff -u -r1.11 ratecheck.9
--- ratecheck.9 3 Apr 2016 06:43:59 -0000       1.11
+++ ratecheck.9 29 Oct 2017 07:35:16 -0000
@@ -106,7 +106,7 @@
                ...
 
                drv_err1count++;
-               if (ratecheck(&drv_lasterr1notice,
+               if (ratecheck(&drv_lasterr1time,
                    &drv_errinterval)) {
                        printf("drv: %ld err1 errors occurred",
                            drv_err1count);
@@ -118,7 +118,7 @@
                ...
 
                drv_err2count++;
-               if (ratecheck(&drv_lasterr2notice,
+               if (ratecheck(&drv_lasterr2time,
                    &drv_errinterval)) {
                        printf("drv: %ld err2 errors occurred",
                            drv_err2count);

Reply via email to