summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-08-28 00:33:50 -0400
committerPaul Duncan <pabs@pablotron.org>2016-08-28 00:33:50 -0400
commit14b04c962ee670e459f3e829e701da7fe1e57048 (patch)
tree860a1e8016436091b68b6e3f22f56f0c5c191c74
parent9315bbfd0f9e51da5438d29681cab6f9a6533d89 (diff)
downloadlibfhp-14b04c962ee670e459f3e829e701da7fe1e57048.tar.bz2
libfhp-14b04c962ee670e459f3e829e701da7fe1e57048.zip
fix warnings
-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);
}
}