From 14b04c962ee670e459f3e829e701da7fe1e57048 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 28 Aug 2016 00:33:50 -0400 Subject: fix warnings --- test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test.c') 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); } } -- cgit v1.2.3