The header file, pmc_common.h, makes some private macros public.  The
intent was to use those macros in SNMP code, but that development never
materialized into production code.  This patch removes the private macros
from public view.

Signed-off-by: Richard Cochran <richardcoch...@gmail.com>
---
 pmc.c        | 1 +
 pmc_common.c | 5 +++++
 pmc_common.h | 6 ------
 3 files changed, 6 insertions(+), 6 deletions(-)

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,
-- 
2.20.1



_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to