diff --git a/pmc.c b/pmc.c index 4e6043b..e3cd6f3 100644 --- a/pmc.c +++ b/pmc.c @@ -38,6 +38,7 @@ static struct pmc *pmc; #define IFMT "\n\t\t" +#define P41 ((double)(1ULL << 41)) static char *text2str(struct PTPText *text) { diff --git a/pmc_common.c b/pmc_common.c index 3aab4b9..92daf20 100644 --- a/pmc_common.c +++ b/pmc_common.c @@ -27,6 +27,11 @@ #include "util.h" #include "pmc_common.h" +#define BAD_ACTION -1 +#define BAD_ID -1 +#define AMBIGUOUS_ID -2 +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) + /* Field Len Type -------------------------------------------------------- diff --git a/pmc_common.h b/pmc_common.h index b1fdcd6..9fa72de 100644 --- a/pmc_common.h +++ b/pmc_common.h @@ -25,12 +25,6 @@ #include "msg.h" #include "transport.h" -#define BAD_ACTION -1 -#define BAD_ID -1 -#define AMBIGUOUS_ID -2 -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) -#define P41 ((double)(1ULL << 41)) - struct pmc; struct pmc *pmc_create(struct config *cfg, enum transport_type transport_type,