msgbuf: implement msgbuf_parse()

This commit is contained in:
William Pitcock 2016-02-10 00:08:58 -06:00
parent 88b427b61d
commit a8e69f5dfc
4 changed files with 109 additions and 2 deletions

View file

@ -46,7 +46,7 @@ struct MsgBuf {
* parse a message into a MsgBuf.
* returns 0 on success, 1 on error.
*/
int msgbuf_parse(struct MsgBuf *msgbuf, const char *line);
int msgbuf_parse(struct MsgBuf *msgbuf, char *line);
/*
* unparse a pure MsgBuf into a buffer.