diff --git a/include/common/hpack-tbl.h b/include/common/hpack-tbl.h index ffa866bb5a..385f3860bb 100644 --- a/include/common/hpack-tbl.h +++ b/include/common/hpack-tbl.h @@ -155,7 +155,7 @@ static inline const struct hpack_dte *hpack_get_dte(const struct hpack_dht *dht, } /* returns non-zero if is valid for table */ -static inline int hpack_valid_idx(const struct hpack_dht *dht, uint16_t idx) +static inline int hpack_valid_idx(const struct hpack_dht *dht, uint32_t idx) { return idx < dht->used + HPACK_SHT_SIZE; } @@ -181,7 +181,7 @@ static inline struct ist hpack_get_value(const struct hpack_dht *dht, const stru } /* takes an idx, returns the associated name */ -static inline struct ist hpack_idx_to_name(const struct hpack_dht *dht, int idx) +static inline struct ist hpack_idx_to_name(const struct hpack_dht *dht, uint32_t idx) { const struct hpack_dte *dte; @@ -196,7 +196,7 @@ static inline struct ist hpack_idx_to_name(const struct hpack_dht *dht, int idx) } /* takes an idx, returns the associated value */ -static inline struct ist hpack_idx_to_value(const struct hpack_dht *dht, int idx) +static inline struct ist hpack_idx_to_value(const struct hpack_dht *dht, uint32_t idx) { const struct hpack_dte *dte; diff --git a/src/hpack-dec.c b/src/hpack-dec.c index 16a722f994..148a9a2157 100644 --- a/src/hpack-dec.c +++ b/src/hpack-dec.c @@ -114,7 +114,7 @@ static inline int hpack_idx_to_phdr(uint32_t idx) * allocated there. In case of allocation failure, returns a string whose * pointer is NULL. */ -static inline struct ist hpack_alloc_string(struct buffer *store, int idx, +static inline struct ist hpack_alloc_string(struct buffer *store, uint32_t idx, struct ist in) { struct ist out; diff --git a/src/hpack-tbl.c b/src/hpack-tbl.c index 02e5a5cfe7..24eb7c444a 100644 --- a/src/hpack-tbl.c +++ b/src/hpack-tbl.c @@ -113,7 +113,7 @@ static inline unsigned int hpack_dht_get_tail(const struct hpack_dht *dht) /* dump the whole dynamic header table */ static void hpack_dht_dump(FILE *out, const struct hpack_dht *dht) { - int i; + unsigned int i; unsigned int slot; char name[4096], value[4096];