|
Lines 1-60
Link Here
|
| 1 |
diff --git a/include/common/hpack-tbl.h b/include/common/hpack-tbl.h |
|
|
| 2 |
index ffa866b..385f386 100644 |
| 3 |
--- include/common/hpack-tbl.h |
| 4 |
+++ include/common/hpack-tbl.h |
| 5 |
@@ -155,7 +155,7 @@ static inline const struct hpack_dte *hpack_get_dte(const struct hpack_dht *dht, |
| 6 |
} |
| 7 |
|
| 8 |
/* returns non-zero if <idx> is valid for table <dht> */ |
| 9 |
-static inline int hpack_valid_idx(const struct hpack_dht *dht, uint16_t idx) |
| 10 |
+static inline int hpack_valid_idx(const struct hpack_dht *dht, uint32_t idx) |
| 11 |
{ |
| 12 |
return idx < dht->used + HPACK_SHT_SIZE; |
| 13 |
} |
| 14 |
@@ -181,7 +181,7 @@ static inline struct ist hpack_get_value(const struct hpack_dht *dht, const stru |
| 15 |
} |
| 16 |
|
| 17 |
/* takes an idx, returns the associated name */ |
| 18 |
-static inline struct ist hpack_idx_to_name(const struct hpack_dht *dht, int idx) |
| 19 |
+static inline struct ist hpack_idx_to_name(const struct hpack_dht *dht, uint32_t idx) |
| 20 |
{ |
| 21 |
const struct hpack_dte *dte; |
| 22 |
|
| 23 |
@@ -196,7 +196,7 @@ static inline struct ist hpack_idx_to_name(const struct hpack_dht *dht, int idx) |
| 24 |
} |
| 25 |
|
| 26 |
/* takes an idx, returns the associated value */ |
| 27 |
-static inline struct ist hpack_idx_to_value(const struct hpack_dht *dht, int idx) |
| 28 |
+static inline struct ist hpack_idx_to_value(const struct hpack_dht *dht, uint32_t idx) |
| 29 |
{ |
| 30 |
const struct hpack_dte *dte; |
| 31 |
|
| 32 |
diff --git a/src/hpack-dec.c b/src/hpack-dec.c |
| 33 |
index dfbcaff..99d40f9 100644 |
| 34 |
--- src/hpack-dec.c |
| 35 |
+++ src/hpack-dec.c |
| 36 |
@@ -110,7 +110,7 @@ static inline int hpack_idx_to_phdr(uint32_t idx) |
| 37 |
* allocated there. In case of allocation failure, returns a string whose |
| 38 |
* pointer is NULL. |
| 39 |
*/ |
| 40 |
-static inline struct ist hpack_alloc_string(struct chunk *store, int idx, struct ist in) |
| 41 |
+static inline struct ist hpack_alloc_string(struct chunk *store, uint32_t idx, struct ist in) |
| 42 |
{ |
| 43 |
struct ist out; |
| 44 |
|
| 45 |
diff --git a/src/hpack-tbl.c b/src/hpack-tbl.c |
| 46 |
index 9d6b764..e2d4426 100644 |
| 47 |
--- src/hpack-tbl.c |
| 48 |
+++ src/hpack-tbl.c |
| 49 |
@@ -113,7 +113,7 @@ static inline unsigned int hpack_dht_get_tail(const struct hpack_dht *dht) |
| 50 |
/* dump the whole dynamic header table */ |
| 51 |
static void hpack_dht_dump(const struct hpack_dht *dht) |
| 52 |
{ |
| 53 |
- int i; |
| 54 |
+ unsigned int i; |
| 55 |
unsigned int slot; |
| 56 |
char name[4096], value[4096]; |
| 57 |
|
| 58 |
-- |
| 59 |
1.7.12.1 |
| 60 |
|