From b2072076bf2e56b0ce9a2f15f4449504da88d8de Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Sun, 5 Aug 2012 14:09:13 +0200 Subject: [PATCH] Place the sk_ globals into their proper source module. This will allow reusing sk.c in the management client program. Signed-off-by: Richard Cochran --- ptp4l.c | 1 - sk.c | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ptp4l.c b/ptp4l.c index 9e04f0b..c41e642 100644 --- a/ptp4l.c +++ b/ptp4l.c @@ -29,7 +29,6 @@ #include "transport.h" int assume_two_step; -int sk_tx_retries = 2, sk_prefer_layer2 = 0; /*see sk.c*/ double configured_pi_kp, configured_pi_ki; /*see pi.c*/ extern unsigned char ptp_dst_mac[]; /*see raw.c*/ extern unsigned char p2p_dst_mac[]; /*see raw.c*/ diff --git a/sk.c b/sk.c index 577ace0..84cf11e 100644 --- a/sk.c +++ b/sk.c @@ -30,6 +30,10 @@ #include "print.h" #include "sk.h" +/* globals */ + +int sk_tx_retries = 2, sk_prefer_layer2 = 0; + /* private methods */ static int hwts_init(int fd, char *device)