Commit 495d332a authored by Alessandro Rubini's avatar Alessandro Rubini

trivial: mark static functions as static

All functions in msg.c that are used locally are now static.
There is one that is never used at all (msg_unpack_delay_req)
but I fear I need more auditing before removing it. It may
be something we need to do, I'm not sure.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <>
parent 689ce9cb
......@@ -339,18 +339,10 @@ 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);
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);
extern void msg_unpack_announce(void *buf, MsgAnnounce *ann);
extern void msg_pack_follow_up(struct pp_instance *ppi,
Timestamp *prec_orig_tstamp);
extern void msg_unpack_follow_up(void *buf, MsgFollowUp *flwup);
extern void msg_pack_delay_req(struct pp_instance *ppi,
Timestamp *orig_tstamp);
extern void msg_unpack_delay_req(void *buf, MsgDelayReq *delay_req);
extern void msg_pack_delay_resp(struct pp_instance *ppi,
MsgHeader *hdr, Timestamp *rcv_tstamp);
extern void msg_unpack_delay_resp(void *buf, MsgDelayResp *resp);
/* each of them returns 0 if no error and -1 in case of error in send */
......@@ -84,7 +84,7 @@ void msg_pack_header(struct pp_instance *ppi, void *buf)
/* Pack Sync message into out buffer of ppi */
void msg_pack_sync(struct pp_instance *ppi, Timestamp *orig_tstamp)
static void msg_pack_sync(struct pp_instance *ppi, Timestamp *orig_tstamp)
void *buf;
......@@ -123,7 +123,7 @@ void msg_unpack_sync(void *buf, MsgSync *sync)
/* Pack Announce message into out buffer of ppi */
int msg_pack_announce(struct pp_instance *ppi)
static int msg_pack_announce(struct pp_instance *ppi)
void *buf;
......@@ -187,7 +187,7 @@ void msg_unpack_announce(void *buf, MsgAnnounce *ann)
/* Pack Follow Up message into out buffer of ppi*/
void msg_pack_follow_up(struct pp_instance *ppi, Timestamp *prec_orig_tstamp)
static void msg_pack_follow_up(struct pp_instance *ppi, Timestamp *prec_orig_tstamp)
void *buf;
......@@ -229,7 +229,7 @@ void msg_unpack_follow_up(void *buf, MsgFollowUp *flwup)
/* pack DelayReq message into out buffer of ppi */
void msg_pack_delay_req(struct pp_instance *ppi, Timestamp *orig_tstamp)
static void msg_pack_delay_req(struct pp_instance *ppi, Timestamp *orig_tstamp)
void *buf;
......@@ -259,7 +259,7 @@ void msg_pack_delay_req(struct pp_instance *ppi, Timestamp *orig_tstamp)
/* pack DelayResp message into OUT buffer of ppi */
void msg_pack_delay_resp(struct pp_instance *ppi,
static void msg_pack_delay_resp(struct pp_instance *ppi,
MsgHeader *hdr, Timestamp *rcv_tstamp)
void *buf;
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