diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-08-28 00:33:50 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-08-28 00:33:50 -0400 |
commit | 14b04c962ee670e459f3e829e701da7fe1e57048 (patch) | |
tree | 860a1e8016436091b68b6e3f22f56f0c5c191c74 | |
parent | 9315bbfd0f9e51da5438d29681cab6f9a6533d89 (diff) | |
download | libfhp-14b04c962ee670e459f3e829e701da7fe1e57048.tar.bz2 libfhp-14b04c962ee670e459f3e829e701da7fe1e57048.zip |
fix warnings
-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); } } |