From bbceec6030f8501ce129a93980c0f2e045cce562 Mon Sep 17 00:00:00 2001 From: Nathan Straz Date: Thu, 1 Aug 2013 01:58:09 -0400 Subject: Rewrite qptostr to store binary bits into an existing buffer --- qarsh_packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qarsh_packet.h') diff --git a/qarsh_packet.h b/qarsh_packet.h index 2ed50f4..516c4fd 100644 --- a/qarsh_packet.h +++ b/qarsh_packet.h @@ -140,7 +140,7 @@ struct qa_packet *make_qp_kill(int sig); struct qa_packet *make_qp_recvfile(const char *path, int if_port, off_t count, mode_t mode); struct qa_packet *make_qp_sendfile(const char *path, int of_port); struct qa_packet *make_qp_rstat(const char *path, const struct stat *sb); -char *qptostr(struct qa_packet *qp, char **qpstr, int *qpsize); +int qptostr(struct qa_packet *qp, char *qpstr, int maxsize); void qpfree(struct qa_packet *qp); void dump_qp(struct qa_packet *qp); -- cgit