The config module is used by ptp4l only, but util is shared with other
programs.

Signed-off-by: Miroslav Lichvar <mlich...@redhat.com>
---
 config.h  |  8 --------
 phc_ctl.c |  1 +
 util.h    | 12 +++++++++++-
 3 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/config.h b/config.h
index 9b74f12..d580496 100644
--- a/config.h
+++ b/config.h
@@ -51,14 +51,6 @@ struct interface {
 #define CFG_IGNORE_USE_SYSLOG   (1 << 5)
 #define CFG_IGNORE_VERBOSE      (1 << 6)
 
-enum parser_result {
-       PARSED_OK,
-       NOT_PARSED,
-       BAD_VALUE,
-       MALFORMED,
-       OUT_OF_RANGE,
-};
-
 struct config {
        /* configuration override */
        int cfg_ignore;
diff --git a/phc_ctl.c b/phc_ctl.c
index dc9c29c..461f2ac 100644
--- a/phc_ctl.c
+++ b/phc_ctl.c
@@ -43,6 +43,7 @@
 #include "missing.h"
 #include "phc.h"
 #include "print.h"
+#include "sk.h"
 #include "sysoff.h"
 #include "util.h"
 #include "version.h"
diff --git a/util.h b/util.h
index cf05e49..bb29e11 100644
--- a/util.h
+++ b/util.h
@@ -20,7 +20,6 @@
 #ifndef HAVE_UTIL_H
 #define HAVE_UTIL_H
 
-#include "config.h"
 #include "ddt.h"
 
 /**
@@ -126,6 +125,17 @@ int is_utc_ambiguous(uint64_t ts);
 int leap_second_status(uint64_t ts, int leap_set, int *leap, int *utc_offset);
 
 /**
+ * Values returned by get_ranged_*().
+ */
+enum parser_result {
+       PARSED_OK,
+       NOT_PARSED,
+       BAD_VALUE,
+       MALFORMED,
+       OUT_OF_RANGE,
+};
+
+/**
  * Get an integer value from string with error checking and range
  * specification.
  *
-- 
1.9.3


------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to