Use the common NSEC_PER_SEC macro in servo source code.
Signed-off-by: Rahul Rameshbabu <[email protected]>
---
servo.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/servo.c b/servo.c
index ea171cd..6d6753e 100644
--- a/servo.c
+++ b/servo.c
@@ -26,11 +26,10 @@
#include "pi.h"
#include "refclock_sock.h"
#include "servo_private.h"
+#include "util.h"
#include "print.h"
-#define NSEC_PER_SEC 1000000000
-
struct servo *servo_create(struct config *cfg, enum servo_type type,
double fadj, int max_ppb, int sw_ts)
{
--
2.40.1
_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel