diff --git a/hdtest/comp_helper.c b/hdtest/comp_helper.c index 4afa5e9a..bb6efc81 100644 --- a/hdtest/comp_helper.c +++ b/hdtest/comp_helper.c @@ -24,7 +24,7 @@ */ #include "comp_helper.h" -void dump_val(json_t *jent, const char *key, uint8_t *val, size_t len) +static void dump_val(json_t *jent, const char *key, uint8_t *val, size_t len) { if(val == NULL) { json_object_set_new(jent, key, json_string("**DEALLOCATED**")); diff --git a/hdtest/inflatehd.c b/hdtest/inflatehd.c index d4cc905a..21b89bb5 100644 --- a/hdtest/inflatehd.c +++ b/hdtest/inflatehd.c @@ -101,7 +101,7 @@ static int inflate_hd(json_t *obj, nghttp2_hd_context *inflater, int seq) return 0; } -static int perform() +static int perform(void) { nghttp2_hd_context inflater; size_t i; diff --git a/lib/nghttp2_hd.c b/lib/nghttp2_hd.c index 92d6fe27..ed16c475 100644 --- a/lib/nghttp2_hd.c +++ b/lib/nghttp2_hd.c @@ -97,7 +97,7 @@ static nghttp2_hd_entry static_table[] = { /* 58 */ MAKE_NV("www-authenticate", "") }; -const static size_t STATIC_TABLE_LENGTH = +static const size_t STATIC_TABLE_LENGTH = sizeof(static_table)/sizeof(static_table[0]); typedef struct {