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
48426bda
Commit
48426bda
authored
Feb 28, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
general: use clear_TimeInternal when needed
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
ee21b718
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
14 deletions
+7
-14
bmc.c
proto-standard/bmc.c
+2
-4
state-initializing.c
proto-standard/state-initializing.c
+1
-2
state-slave.c
proto-standard/state-slave.c
+4
-8
No files found.
proto-standard/bmc.c
View file @
48426bda
...
...
@@ -19,10 +19,8 @@ void m1(struct pp_instance *ppi)
{
/* Current data set update */
DSCUR
(
ppi
)
->
stepsRemoved
=
0
;
DSCUR
(
ppi
)
->
offsetFromMaster
.
nanoseconds
=
0
;
DSCUR
(
ppi
)
->
offsetFromMaster
.
seconds
=
0
;
DSCUR
(
ppi
)
->
meanPathDelay
.
nanoseconds
=
0
;
DSCUR
(
ppi
)
->
meanPathDelay
.
seconds
=
0
;
clear_TimeInternal
(
&
DSCUR
(
ppi
)
->
offsetFromMaster
);
clear_TimeInternal
(
&
DSCUR
(
ppi
)
->
meanPathDelay
);
/* Parent data set */
memcpy
(
DSPAR
(
ppi
)
->
parentPortIdentity
.
clockIdentity
,
...
...
proto-standard/state-initializing.c
View file @
48426bda
...
...
@@ -57,8 +57,7 @@ int pp_initializing(struct pp_instance *ppi, unsigned char *pkt, int plen)
ppi
->
defaultDS
->
clockIdentity
,
PP_CLOCK_IDENTITY_LENGTH
);
port
->
portIdentity
.
portNumber
=
1
;
port
->
logMinDelayReqInterval
=
PP_DEFAULT_DELAYREQ_INTERVAL
;
port
->
peerMeanPathDelay
.
seconds
=
0
;
port
->
peerMeanPathDelay
.
nanoseconds
=
0
;
clear_TimeInternal
(
&
port
->
peerMeanPathDelay
);
port
->
logAnnounceInterval
=
opt
->
announce_intvl
;
port
->
announceReceiptTimeout
=
PP_DEFAULT_ANNOUNCE_RECEIPT_TIMEOUT
;
port
->
logSyncInterval
=
opt
->
sync_intvl
;
...
...
proto-standard/state-slave.c
View file @
48426bda
...
...
@@ -29,14 +29,10 @@ int pp_slave(struct pp_instance *ppi, unsigned char *pkt, int plen)
ppi
->
waiting_for_follow
=
FALSE
;
ppi
->
pdelay_req_send_time
.
seconds
=
0
;
ppi
->
pdelay_req_send_time
.
nanoseconds
=
0
;
ppi
->
pdelay_req_receive_time
.
seconds
=
0
;
ppi
->
pdelay_req_receive_time
.
nanoseconds
=
0
;
ppi
->
pdelay_resp_send_time
.
seconds
=
0
;
ppi
->
pdelay_resp_send_time
.
nanoseconds
=
0
;
ppi
->
pdelay_resp_receive_time
.
seconds
=
0
;
ppi
->
pdelay_resp_receive_time
.
nanoseconds
=
0
;
clear_TimeInternal
(
&
ppi
->
pdelay_req_send_time
);
clear_TimeInternal
(
&
ppi
->
pdelay_req_receive_time
);
clear_TimeInternal
(
&
ppi
->
pdelay_resp_send_time
);
clear_TimeInternal
(
&
ppi
->
pdelay_resp_receive_time
);
st_com_restart_annrec_timer
(
ppi
);
...
...
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