diff options
Diffstat (limited to 'src/testspdy/test_struct_namevalue.c')
-rw-r--r-- | src/testspdy/test_struct_namevalue.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/testspdy/test_struct_namevalue.c b/src/testspdy/test_struct_namevalue.c index fb912bfa..dbd60e5b 100644 --- a/src/testspdy/test_struct_namevalue.c +++ b/src/testspdy/test_struct_namevalue.c | |||
@@ -37,6 +37,7 @@ int size2; | |||
37 | int brake_at = 3; | 37 | int brake_at = 3; |
38 | bool flag; | 38 | bool flag; |
39 | 39 | ||
40 | |||
40 | int | 41 | int |
41 | iterate_cb (void *cls, const char *name, const char * const * value, int num_values) | 42 | iterate_cb (void *cls, const char *name, const char * const * value, int num_values) |
42 | { | 43 | { |
@@ -68,6 +69,10 @@ iterate_cb (void *cls, const char *name, const char * const * value, int num_val | |||
68 | int | 69 | int |
69 | iterate_brake_cb (void *cls, const char *name, const char * const *value, int num_values) | 70 | iterate_brake_cb (void *cls, const char *name, const char * const *value, int num_values) |
70 | { | 71 | { |
72 | (void)name; | ||
73 | (void)value; | ||
74 | (void)num_values; | ||
75 | |||
71 | int *c = (int*)cls; | 76 | int *c = (int*)cls; |
72 | 77 | ||
73 | if(*c < 0 || *c >= brake_at) | 78 | if(*c < 0 || *c >= brake_at) |
@@ -102,7 +107,7 @@ main() | |||
102 | struct SPDY_NameValue *container; | 107 | struct SPDY_NameValue *container; |
103 | struct SPDY_NameValue *container2; | 108 | struct SPDY_NameValue *container2; |
104 | struct SPDY_NameValue *container3; | 109 | struct SPDY_NameValue *container3; |
105 | struct SPDY_NameValue *container_arr[1]; | 110 | struct SPDY_NameValue *container_arr[2]; |
106 | 111 | ||
107 | size = sizeof(pairs)/sizeof(pairs[0]); | 112 | size = sizeof(pairs)/sizeof(pairs[0]); |
108 | 113 | ||
@@ -144,7 +149,7 @@ main() | |||
144 | value = SPDY_name_value_lookup(container,pairs[i], &ret); | 149 | value = SPDY_name_value_lookup(container,pairs[i], &ret); |
145 | if(NULL == value || 1 !=ret || strcmp(value[0], pairs[i+1]) != 0) | 150 | if(NULL == value || 1 !=ret || strcmp(value[0], pairs[i+1]) != 0) |
146 | { | 151 | { |
147 | printf("%i; %i; %i\n", value, ret, strcmp(value[0], pairs[i+1])); | 152 | printf("%p; %i; %i\n", value, ret, strcmp(value[0], pairs[i+1])); |
148 | FAIL_TEST("SPDY_name_value_lookup failed\n"); | 153 | FAIL_TEST("SPDY_name_value_lookup failed\n"); |
149 | } | 154 | } |
150 | } | 155 | } |
@@ -251,7 +256,7 @@ main() | |||
251 | value = SPDY_name_value_lookup(container,pairs_with_empty[i], &ret); | 256 | value = SPDY_name_value_lookup(container,pairs_with_empty[i], &ret); |
252 | if(NULL == value || 1 != ret) | 257 | if(NULL == value || 1 != ret) |
253 | { | 258 | { |
254 | printf("%i; %i\n", value, ret); | 259 | printf("%p; %i\n", value, ret); |
255 | FAIL_TEST("SPDY_name_value_lookup failed\n"); | 260 | FAIL_TEST("SPDY_name_value_lookup failed\n"); |
256 | } | 261 | } |
257 | } | 262 | } |