Commit 689ce9cb authored by Alessandro Rubini's avatar Alessandro Rubini

general: move msg_copy_header to its user; make it static

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <>
parent 3568b8b8
......@@ -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);
......@@ -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;
......@@ -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)
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