Don't include config.h in util.h
The config module is used by ptp4l only, but util is shared with other programs. Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>master
parent
aa24ba58e1
commit
48046e593e
8
config.h
8
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;
|
||||
|
|
|
@ -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"
|
||||
|
|
12
util.h
12
util.h
|
@ -20,7 +20,6 @@
|
|||
#ifndef HAVE_UTIL_H
|
||||
#define HAVE_UTIL_H
|
||||
|
||||
#include "config.h"
|
||||
#include "ddt.h"
|
||||
|
||||
/**
|
||||
|
@ -125,6 +124,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.
|
||||
|
|
Loading…
Reference in New Issue