From bf9f75da299a8ce2de204f33ba8697b839dc46c7 Mon Sep 17 00:00:00 2001 From: Nathan Straz Date: Fri, 20 Sep 2013 10:32:26 -0400 Subject: Change ack type to uint8 like it is in the packet header --- qarsh_packet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qarsh_packet.c') 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; } -- cgit