Signed-off-by: Michael Brown <mbr...@fensystems.co.uk>
---
 mave.c   | 2 +-
 tsproc.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mave.c b/mave.c
index fd09e5a..1a64f79 100644
--- a/mave.c
+++ b/mave.c
@@ -58,7 +58,7 @@ static void mave_reset(struct filter *filter)
 
        m->cnt = 0;
        m->index = 0;
-       m->sum = 0;
+       m->sum = tmv_zero();
        memset(m->val, 0, m->len * sizeof(*m->val));
 }
 
diff --git a/tsproc.c b/tsproc.c
index 63c989d..06c0184 100644
--- a/tsproc.c
+++ b/tsproc.c
@@ -178,7 +178,7 @@ int tsproc_update_delay(struct tsproc *tsp, tmv_t *delay)
 
 int tsproc_update_offset(struct tsproc *tsp, tmv_t *offset, double *weight)
 {
-       tmv_t delay = 0, raw_delay = 0;
+       tmv_t delay = tmv_zero(), raw_delay = tmv_zero();
 
        if (tmv_is_zero(tsp->t1) || tmv_is_zero(tsp->t2))
                return -1;
-- 
2.9.5


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to