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
689ce9cb
Commit
689ce9cb
authored
Nov 13, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
general: move msg_copy_header to its user; make it static
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
3568b8b8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
ppsi.h
include/ppsi/ppsi.h
+0
-1
common-fun.c
proto-standard/common-fun.c
+5
-0
msg.c
proto-standard/msg.c
+0
-6
No files found.
include/ppsi/ppsi.h
View file @
689ce9cb
...
...
@@ -339,7 +339,6 @@ extern int bmc(struct pp_instance *ppi);
extern
void
msg_pack_header
(
struct
pp_instance
*
ppi
,
void
*
buf
);
extern
int
__attribute__
((
warn_unused_result
))
msg_unpack_header
(
struct
pp_instance
*
ppi
,
void
*
buf
,
int
plen
);
void
*
msg_copy_header
(
MsgHeader
*
dest
,
MsgHeader
*
src
);
extern
void
msg_pack_sync
(
struct
pp_instance
*
ppi
,
Timestamp
*
orig_tstamp
);
extern
void
msg_unpack_sync
(
void
*
buf
,
MsgSync
*
sync
);
extern
int
msg_pack_announce
(
struct
pp_instance
*
ppi
);
...
...
proto-standard/common-fun.c
View file @
689ce9cb
...
...
@@ -8,6 +8,11 @@
#include <ppsi/ppsi.h>
#include "common-fun.h"
static
void
*
msg_copy_header
(
MsgHeader
*
dest
,
MsgHeader
*
src
)
{
return
memcpy
(
dest
,
src
,
sizeof
(
MsgHeader
));
}
static
void
*
__align_pointer
(
void
*
p
)
{
unsigned
long
ip
,
align
=
0
;
...
...
proto-standard/msg.c
View file @
689ce9cb
...
...
@@ -83,12 +83,6 @@ void msg_pack_header(struct pp_instance *ppi, void *buf)
/* Default value(spec Table 24) */
}
void
*
msg_copy_header
(
MsgHeader
*
dest
,
MsgHeader
*
src
)
{
return
memcpy
(
dest
,
src
,
sizeof
(
MsgHeader
));
}
/* Pack Sync message into out buffer of ppi */
void
msg_pack_sync
(
struct
pp_instance
*
ppi
,
Timestamp
*
orig_tstamp
)
{
...
...
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