config: remove the last remaining legacy item.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2015-08-22 21:15:17 +02:00
parent e82462e295
commit 13aec6d133
2 changed files with 5 additions and 6 deletions

View File

@ -44,9 +44,6 @@ struct config {
/* hash of all non-legacy items */
struct hash *htab;
/* the rest are legacy fields */
struct default_ds dds;
};
int config_read(char *name, struct config *cfg);

View File

@ -43,6 +43,8 @@ static struct config cfg_settings = {
.interfaces = STAILQ_HEAD_INITIALIZER(cfg_settings.interfaces),
};
static struct default_ds ptp4l_dds;
static void usage(char *progname)
{
fprintf(stderr,
@ -82,8 +84,8 @@ int main(int argc, char *argv[])
struct interface *iface;
struct clock *clock;
struct config *cfg = &cfg_settings;
struct default_ds *dds = &cfg_settings.dds;
struct defaultDS *ds = &cfg_settings.dds.dds;
struct default_ds *dds = &ptp4l_dds;
struct defaultDS *ds = &ptp4l_dds.dds;
int phc_index = -1, print_level, required_modes = 0;
unsigned char oui[OUI_LEN];
@ -339,7 +341,7 @@ int main(int argc, char *argv[])
clock = clock_create(&cfg_settings,
phc_index, &cfg_settings.interfaces,
&cfg_settings.dds);
&ptp4l_dds);
if (!clock) {
fprintf(stderr, "failed to create a clock\n");
return -1;