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 <richardcochran@gmail.com>
master
Richard Cochran 2012-08-05 14:09:13 +02:00
parent ba5c5704e6
commit b2072076bf
2 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,6 @@
#include "transport.h" #include "transport.h"
int assume_two_step; 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*/ double configured_pi_kp, configured_pi_ki; /*see pi.c*/
extern unsigned char ptp_dst_mac[]; /*see raw.c*/ extern unsigned char ptp_dst_mac[]; /*see raw.c*/
extern unsigned char p2p_dst_mac[]; /*see raw.c*/ extern unsigned char p2p_dst_mac[]; /*see raw.c*/

4
sk.c
View File

@ -30,6 +30,10 @@
#include "print.h" #include "print.h"
#include "sk.h" #include "sk.h"
/* globals */
int sk_tx_retries = 2, sk_prefer_layer2 = 0;
/* private methods */ /* private methods */
static int hwts_init(int fd, char *device) static int hwts_init(int fd, char *device)