Commit 7010d5df authored by Alessandro Rubini's avatar Alessandro Rubini

trivial: kill cur_utc_ofst, never used already

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 954fb4a9
......@@ -20,7 +20,6 @@
#define PP_DEFAULT_AI 120
#define PP_DEFAULT_DELAY_S 6
#define PP_DEFAULT_ANNOUNCE_INTERVAL 1 /* 0 in 802.1AS, 3 is ok */
#define PP_DEFAULT_UTC_OFFSET 0
#define PP_DEFAULT_UTC_VALID 0
#define PP_DEFAULT_DELAYREQ_INTERVAL 0 /* 3 is ok */
#define PP_DEFAULT_SYNC_INTERVAL 0 /* -7 in 802.1AS, 1 is ok */
......
......@@ -34,7 +34,6 @@ struct pp_runtime_opts {
Integer16 ap, ai;
Integer16 s;
Integer16 max_foreign_records;
Integer16 cur_utc_ofst;
Integer8 announce_intvl;
Integer8 sync_intvl;
UInteger8 prio1;
......
......@@ -38,7 +38,6 @@ static struct cmd_line_opt cmd_line_list[] = {
/* {"-G", "run in gPTP mode (implies -e)"}, -- no peer-to-peer mode */
{"-l NUMBER,NUMBER", "specify inbound, outbound latency in nsec"},
CMD_LINE_SEPARATOR,
{"-o NUMBER", "specify current UTC offset"},
{"-i NUMBER", "specify PTP domain number"},
CMD_LINE_SEPARATOR,
{"-n NUMBER", "specify announce interval in 2^NUMBER sec"},
......@@ -152,10 +151,6 @@ int pp_parse_cmdline(struct pp_instance *ppi, int argc, char **argv)
OPTS(ppi)->inbound_latency.nanoseconds = n1;
OPTS(ppi)->outbound_latency.nanoseconds = n2;
break;
case 'o':
a = argv[++i];
OPTS(ppi)->cur_utc_ofst = atoi(a);
break;
case 'i':
a = argv[++i];
OPTS(ppi)->domain_number = atoi(a);
......
......@@ -29,7 +29,6 @@ struct pp_runtime_opts default_rt_opts = {
.ethernet_mode = PP_DEFAULT_ETHERNET_MODE,
.ofst_first_updated = 0, /* FIXME: is it a option or a state var? */
.max_foreign_records = PP_DEFAULT_MAX_FOREIGN_RECORDS,
.cur_utc_ofst = PP_DEFAULT_UTC_OFFSET,
.announce_intvl = PP_DEFAULT_ANNOUNCE_INTERVAL,
.sync_intvl = PP_DEFAULT_SYNC_INTERVAL,
.prio1 = PP_DEFAULT_PRIORITY1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment