diff options
-rw-r--r-- | test.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -149,7 +149,7 @@ test_percent(void) { /* te parser test */ /******************/ -static const char * +static char * te_parser_tests[] = { "gzip", "deflate", @@ -166,14 +166,14 @@ test_te_parser(void) { fhp_err_t err; // get test string - const char *s = te_parser_tests[i]; + char * const s = te_parser_tests[i]; // init parser fhp_te_parser_t p; fhp_te_parser_init(&p); // parse data - if ((err = fhp_te_parser_push(&p, s, strlen(s))) != FHP_OK) { + if ((err = fhp_te_parser_push(&p, (uint8_t*) s, strlen(s))) != FHP_OK) { die("test_te_parser", "fhp_te_parser_push", err); } @@ -182,7 +182,7 @@ test_te_parser(void) { die("test_te_parser", "fhp_te_parser_push", err); } - fprintf(stderr, "te test: \"%s\", p->num_tes = %u\n", s, p.num_tes); + fprintf(stderr, "te test: \"%s\", p->num_tes = %lu\n", s, p.num_tes); } } |