diff options
author | Pavel TvrdĂk <pawel.tvrdik@gmail.cz> | 2015-05-19 08:53:34 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2015-06-08 02:24:08 +0200 |
commit | ae80a2de95d3d3c153ce20b90c9d8757d02cb33d (patch) | |
tree | be0c9427556557ff5b06b0250bc64ff33062199e /nest/rt-table.c | |
parent | e348ef01b433e06888310c1098a05291034a856c (diff) |
unsigned [int] -> uint
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r-- | nest/rt-table.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c index 24517e2c..d5af41c7 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -182,14 +182,14 @@ rte_trace(struct proto *p, rte *e, int dir, char *msg) } static inline void -rte_trace_in(unsigned int flag, struct proto *p, rte *e, char *msg) +rte_trace_in(uint flag, struct proto *p, rte *e, char *msg) { if (p->debug & flag) rte_trace(p, e, '>', msg); } static inline void -rte_trace_out(unsigned int flag, struct proto *p, rte *e, char *msg) +rte_trace_out(uint flag, struct proto *p, rte *e, char *msg) { if (p->debug & flag) rte_trace(p, e, '<', msg); @@ -1880,7 +1880,7 @@ hc_hash(ip_addr a, rtable *dep) static inline void hc_insert(struct hostcache *hc, struct hostentry *he) { - unsigned int k = he->hash_key >> hc->hash_shift; + uint k = he->hash_key >> hc->hash_shift; he->next = hc->hash_table[k]; hc->hash_table[k] = he; } @@ -1889,7 +1889,7 @@ static inline void hc_remove(struct hostcache *hc, struct hostentry *he) { struct hostentry **hep; - unsigned int k = he->hash_key >> hc->hash_shift; + uint k = he->hash_key >> hc->hash_shift; for (hep = &hc->hash_table[k]; *hep != he; hep = &(*hep)->next); *hep = he->next; @@ -2154,7 +2154,7 @@ rt_get_hostentry(rtable *tab, ip_addr a, ip_addr ll, rtable *dep) if (!tab->hostcache) rt_init_hostcache(tab); - unsigned int k = hc_hash(a, dep); + uint k = hc_hash(a, dep); struct hostcache *hc = tab->hostcache; for (he = hc->hash_table[k >> hc->hash_shift]; he != NULL; he = he->next) if (ipa_equal(he->addr, a) && (he->tab == dep)) |