diff options
author | Nathan Straz <nstraz@redhat.com> | 2013-08-01 01:58:09 -0400 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2013-09-11 17:33:17 -0400 |
commit | bbceec6030f8501ce129a93980c0f2e045cce562 (patch) | |
tree | 025006d9d7dbc7808065dc2f78671eda725a2042 /qarsh_packet.h | |
parent | 063f117b1dbe3868bcfe1933967d2a665b3de0db (diff) | |
download | qarsh-bbceec6030f8501ce129a93980c0f2e045cce562.tar.gz qarsh-bbceec6030f8501ce129a93980c0f2e045cce562.tar.xz qarsh-bbceec6030f8501ce129a93980c0f2e045cce562.zip |
Rewrite qptostr to store binary bits into an existing buffer
Diffstat (limited to 'qarsh_packet.h')
-rw-r--r-- | qarsh_packet.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |