mirror of
https://github.com/moparisthebest/spdylay
synced 2024-11-16 06:25:04 -05:00
Fixed compiler warning
This commit is contained in:
parent
54e4c80b96
commit
2edceb1fb1
@ -62,7 +62,6 @@ void test_spdylay_frame_unpack_nv()
|
|||||||
|
|
||||||
void test_spdylay_frame_pack_nv_duplicate_keys()
|
void test_spdylay_frame_pack_nv_duplicate_keys()
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
uint8_t out[1024];
|
uint8_t out[1024];
|
||||||
const char *nv_src[] = {
|
const char *nv_src[] = {
|
||||||
"method", "GET",
|
"method", "GET",
|
||||||
@ -76,7 +75,7 @@ void test_spdylay_frame_pack_nv_duplicate_keys()
|
|||||||
char **nv = spdylay_frame_nv_copy(nv_src);
|
char **nv = spdylay_frame_nv_copy(nv_src);
|
||||||
spdylay_frame_nv_downcase(nv);
|
spdylay_frame_nv_downcase(nv);
|
||||||
spdylay_frame_nv_sort(nv);
|
spdylay_frame_nv_sort(nv);
|
||||||
size_t inlen = spdylay_frame_pack_nv(out, nv);
|
/* size_t inlen = */ spdylay_frame_pack_nv(out, nv);
|
||||||
const uint8_t *outptr = out;
|
const uint8_t *outptr = out;
|
||||||
int pairs = spdylay_get_uint16(outptr);
|
int pairs = spdylay_get_uint16(outptr);
|
||||||
CU_ASSERT(pairs == 5);
|
CU_ASSERT(pairs == 5);
|
||||||
|
Loading…
Reference in New Issue
Block a user