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
47
Issues
47
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
bd55f147
Commit
bd55f147
authored
Oct 25, 2016
by
Alessandro Rubini
Committed by
Adam Wujek
Nov 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: rename pack_header to init_header
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
5874cdfe
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
ppsi.h
include/ppsi/ppsi.h
+1
-1
msg.c
proto-standard/msg.c
+1
-1
state-initializing.c
proto-standard/state-initializing.c
+1
-1
No files found.
include/ppsi/ppsi.h
View file @
bd55f147
...
...
@@ -356,7 +356,7 @@ extern void m1(struct pp_instance *ppi);
extern
int
bmc
(
struct
pp_instance
*
ppi
);
/* msg.c */
extern
void
msg_
pack
_header
(
struct
pp_instance
*
ppi
,
void
*
buf
);
extern
void
msg_
init
_header
(
struct
pp_instance
*
ppi
,
void
*
buf
);
extern
int
__attribute__
((
warn_unused_result
))
msg_unpack_header
(
struct
pp_instance
*
ppi
,
void
*
buf
,
int
plen
);
extern
void
msg_unpack_sync
(
void
*
buf
,
MsgSync
*
sync
);
...
...
proto-standard/msg.c
View file @
bd55f147
...
...
@@ -54,7 +54,7 @@ int msg_unpack_header(struct pp_instance *ppi, void *buf, int plen)
}
/* Pack header into output buffer -- only called by state-initializing */
void
msg_
pack
_header
(
struct
pp_instance
*
ppi
,
void
*
buf
)
void
msg_
init
_header
(
struct
pp_instance
*
ppi
,
void
*
buf
)
{
memset
(
buf
,
0
,
34
);
*
(
char
*
)(
buf
+
1
)
=
DSPOR
(
ppi
)
->
versionNumber
;
...
...
proto-standard/state-initializing.c
View file @
bd55f147
...
...
@@ -91,7 +91,7 @@ int pp_initializing(struct pp_instance *ppi, unsigned char *pkt, int plen)
pp_diag
(
ppi
,
bmc
,
1
,
"clock accuracy = %d
\n
"
,
DSDEF
(
ppi
)
->
clockQuality
.
clockAccuracy
);
msg_
pack
_header
(
ppi
,
ppi
->
tx_ptp
);
/* This is used for all tx */
msg_
init
_header
(
ppi
,
ppi
->
tx_ptp
);
/* This is used for all tx */
if
(
ppi
->
role
!=
PPSI_ROLE_MASTER
)
ppi
->
next_state
=
PPS_LISTENING
;
...
...
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