pmc: Move private macros back into their source files.

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 <richardcochran@gmail.com>
master
Richard Cochran 2020-03-31 09:41:14 -07:00
parent 467552d1cb
commit aed79c38d4
3 changed files with 6 additions and 6 deletions

1
pmc.c
View File

@ -38,6 +38,7 @@
static struct pmc *pmc; static struct pmc *pmc;
#define IFMT "\n\t\t" #define IFMT "\n\t\t"
#define P41 ((double)(1ULL << 41))
static char *text2str(struct PTPText *text) static char *text2str(struct PTPText *text)
{ {

View File

@ -27,6 +27,11 @@
#include "util.h" #include "util.h"
#include "pmc_common.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 Field Len Type
-------------------------------------------------------- --------------------------------------------------------

View File

@ -25,12 +25,6 @@
#include "msg.h" #include "msg.h"
#include "transport.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;
struct pmc *pmc_create(struct config *cfg, enum transport_type transport_type, struct pmc *pmc_create(struct config *cfg, enum transport_type transport_type,