summaryrefslogtreecommitdiffstats
path: root/qarsh_packet.c
diff options
context:
space:
mode:
authorNathan Straz <nstraz@redhat.com>2013-09-20 10:32:26 -0400
committerNathan Straz <nstraz@redhat.com>2013-09-20 10:32:26 -0400
commitbf9f75da299a8ce2de204f33ba8697b839dc46c7 (patch)
treef4d9b4d9d3c8b68c70376ac7f4f80b0ca8df6904 /qarsh_packet.c
parent09d3e306d9a8269183303dd3e3b3279f09c4115f (diff)
downloadqarsh-bf9f75da299a8ce2de204f33ba8697b839dc46c7.tar.gz
qarsh-bf9f75da299a8ce2de204f33ba8697b839dc46c7.tar.xz
qarsh-bf9f75da299a8ce2de204f33ba8697b839dc46c7.zip
Change ack type to uint8 like it is in the packet header
Diffstat (limited to 'qarsh_packet.c')
-rw-r--r--qarsh_packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qarsh_packet.c b/qarsh_packet.c
index 84dc0c3..1f170f6 100644
--- a/qarsh_packet.c
+++ b/qarsh_packet.c
@@ -300,7 +300,7 @@ parse_qp_runcmd(char *buf, int *buflen, struct qa_packet *qp)
void
parse_qp_ack(char *buf, int *buflen, struct qa_packet *qp)
{
- buf = fetch_int(buf, buflen, (int *)&(qp->qp_ack.qp_ack_type));
+ buf = fetch_uint8(buf, buflen, (int *)&(qp->qp_ack.qp_ack_type));
buf = fetch_int(buf, buflen, &(qp->qp_ack.qp_ack_seq));
}
@@ -468,7 +468,7 @@ store_qp_runcmd(char *buf, struct qa_packet *qp)
char *
store_qp_ack(char *buf, struct qa_packet *qp)
{
- buf = store_int(buf, qp->qp_ack.qp_ack_type);
+ buf = store_uint8(buf, qp->qp_ack.qp_ack_type);
buf = store_int(buf, qp->qp_ack.qp_ack_seq);
return buf;
}