summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_nexthop.c
diff options
context:
space:
mode:
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>2017-08-19 07:43:09 +0200
committerMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>2017-08-19 07:43:09 +0200
commit0291c246dbf3e2e598a3a93c835a40cd6bcbb845 (patch)
treeb216bbb6761b8cdaab157175ab44ce3fe99e380e /bgpd/bgp_nexthop.c
parentFix coding style. (diff)
downloadfrr-0291c246dbf3e2e598a3a93c835a40cd6bcbb845.tar.xz
frr-0291c246dbf3e2e598a3a93c835a40cd6bcbb845.zip
fix coding style
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_nexthop.c')
-rw-r--r--bgpd/bgp_nexthop.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/bgpd/bgp_nexthop.c b/bgpd/bgp_nexthop.c
index b988fbf73..69c4ee1b6 100644
--- a/bgpd/bgp_nexthop.c
+++ b/bgpd/bgp_nexthop.c
@@ -90,8 +90,8 @@ static void bgp_nexthop_cache_reset(struct bgp_table *table)
static void *bgp_tip_hash_alloc(void *p)
{
- const struct in_addr *val = (const struct in_addr *)p;
- struct tip_addr *addr;
+ const struct in_addr *val = (const struct in_addr *)p;
+ struct tip_addr *addr;
addr = XMALLOC(MTYPE_TIP_ADDR, sizeof(struct tip_addr));
addr->refcnt = 0;
@@ -107,15 +107,15 @@ static void bgp_tip_hash_free(void *addr)
static unsigned int bgp_tip_hash_key_make(void *p)
{
- const struct tip_addr *addr = p;
+ const struct tip_addr *addr = p;
return jhash_1word(addr->addr.s_addr, 0);
}
static int bgp_tip_hash_cmp(const void *p1, const void *p2)
{
- const struct tip_addr *addr1 = p1;
- const struct tip_addr *addr2 = p2;
+ const struct tip_addr *addr1 = p1;
+ const struct tip_addr *addr2 = p2;
return addr1->addr.s_addr == addr2->addr.s_addr;
}
@@ -137,8 +137,8 @@ void bgp_tip_hash_destroy(struct bgp *bgp)
void bgp_tip_add(struct bgp *bgp, struct in_addr *tip)
{
- struct tip_addr tmp;
- struct tip_addr *addr;
+ struct tip_addr tmp;
+ struct tip_addr *addr;
tmp.addr = *tip;
@@ -151,8 +151,8 @@ void bgp_tip_add(struct bgp *bgp, struct in_addr *tip)
void bgp_tip_del(struct bgp *bgp, struct in_addr *tip)
{
- struct tip_addr tmp;
- struct tip_addr *addr;
+ struct tip_addr tmp;
+ struct tip_addr *addr;
tmp.addr = *tip;