Commit bd55f147 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Adam Wujek

trivial: rename pack_header to init_header

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <>
parent 5874cdfe
......@@ -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);
......@@ -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;
......@@ -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",
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;
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