From c7098364f28cca0e17070f3f46b896c02e09ddcf Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Sat, 9 Feb 2013 08:51:19 +0100 Subject: [PATCH] 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 --- clock.c | 4 ++-- port.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clock.c b/clock.c index 281adff..4a714eb 100644 --- a/clock.c +++ b/clock.c @@ -46,8 +46,8 @@ struct freq_estimator { tmv_t origin1; tmv_t ingress1; - int max_count; - int count; + unsigned int max_count; + unsigned int count; }; struct clock { diff --git a/port.c b/port.c index b06a648..1438808 100644 --- a/port.c +++ b/port.c @@ -43,8 +43,8 @@ struct nrate_estimator { double ratio; tmv_t origin1; tmv_t ingress1; - int max_count; - int count; + unsigned int max_count; + unsigned int count; }; struct port {