summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test.c b/test.c
index 98e09d3..a371bc6 100644
--- a/test.c
+++ b/test.c
@@ -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);
}
}