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
parent
467552d1cb
commit
aed79c38d4
1
pmc.c
1
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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
--------------------------------------------------------
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue