From 33085472a2a54370a1f5a821201a6a48560c7898 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 20 Feb 2016 14:46:09 -0600 Subject: [PATCH] msgbuf: make msgbuf_unparse_prefix() public --- include/msgbuf.h | 2 ++ ircd/msgbuf.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/msgbuf.h b/include/msgbuf.h index 7de796a0..64e481cd 100644 --- a/include/msgbuf.h +++ b/include/msgbuf.h @@ -68,6 +68,8 @@ int msgbuf_unparse(char *buf, size_t buflen, struct MsgBuf *msgbuf, unsigned int int msgbuf_unparse_fmt(char *buf, size_t buflen, struct MsgBuf *head, unsigned int capmask, const char *fmt, ...) AFP(5, 6); int msgbuf_vunparse_fmt(char *buf, size_t buflen, struct MsgBuf *head, unsigned int capmask, const char *fmt, va_list va); +void msgbuf_unparse_prefix(char *buf, size_t buflen, struct MsgBuf *msgbuf, unsigned int capmask); + static inline void msgbuf_init(struct MsgBuf *msgbuf) { diff --git a/ircd/msgbuf.c b/ircd/msgbuf.c index ac7609a7..c0444bb2 100644 --- a/ircd/msgbuf.c +++ b/ircd/msgbuf.c @@ -142,7 +142,7 @@ msgbuf_unparse_tags(char *buf, size_t buflen, struct MsgBuf *msgbuf, unsigned in rb_strlcat(buf, " ", buflen); } -static void +void msgbuf_unparse_prefix(char *buf, size_t buflen, struct MsgBuf *msgbuf, unsigned int capmask) { int i;