Make the counters for the frequency and rate estimators unsigned.

These are simple 'up' counters.
There is no need for negative values here.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2013-02-09 08:51:19 +01:00
parent 5b8e169486
commit c7098364f2
2 changed files with 4 additions and 4 deletions

View File

@ -46,8 +46,8 @@
struct freq_estimator { struct freq_estimator {
tmv_t origin1; tmv_t origin1;
tmv_t ingress1; tmv_t ingress1;
int max_count; unsigned int max_count;
int count; unsigned int count;
}; };
struct clock { struct clock {

4
port.c
View File

@ -43,8 +43,8 @@ struct nrate_estimator {
double ratio; double ratio;
tmv_t origin1; tmv_t origin1;
tmv_t ingress1; tmv_t ingress1;
int max_count; unsigned int max_count;
int count; unsigned int count;
}; };
struct port { struct port {