Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
7010d5df
Commit
7010d5df
authored
Mar 05, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: kill cur_utc_ofst, never used already
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
954fb4a9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
8 deletions
+0
-8
constants.h
include/ppsi/constants.h
+0
-1
ppsi.h
include/ppsi/ppsi.h
+0
-1
cmdline.c
lib/cmdline.c
+0
-5
open-close.c
proto-standard/open-close.c
+0
-1
No files found.
include/ppsi/constants.h
View file @
7010d5df
...
...
@@ -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 */
...
...
include/ppsi/ppsi.h
View file @
7010d5df
...
...
@@ -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
;
...
...
lib/cmdline.c
View file @
7010d5df
...
...
@@ -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
);
...
...
proto-standard/open-close.c
View file @
7010d5df
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment