From 923de654c8d251d6714a6f9da2e93c236e935042 Mon Sep 17 00:00:00 2001 From: Paul Jakma Date: Sun, 29 Apr 2007 18:25:17 +0000 Subject: [bgpd] Fix warnings: hash callbacks should match hash API declarations 2007-04-22 Sebastien Tandel * bgp_advertise.c : (baa_hash_alloc, baa_hash_key, baa_hash_cmp) conforms to quagga hash API. Defines _hash_[alloc|key|cmp] with void * arguments as defined by the API. * bgp_aspath.c,h : (aspath_key_make) conforms to quagga hash API. Defines _hash_[alloc|key|cmp] with void * arguments as defined by the API. * bgp_attr.c,h : (cluster_hash_alloc, cluster_hash_key_make, cluster_hash_cmp, transit_hash_alloc, transit_hash_key_make, transit_hash_cmp, attrhash_key_make, attrhash_cmp, bgp_attr_hash_alloc) conforms to quagga hash API. Defines _hash_[alloc|key|cmp] with void * arguments as defined by the API. --- bgpd/bgp_aspath.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bgpd/bgp_aspath.c') diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c index 1f522d79..b328e38a 100644 --- a/bgpd/bgp_aspath.c +++ b/bgpd/bgp_aspath.c @@ -1447,8 +1447,9 @@ aspath_str2aspath (const char *str) /* Make hash value by raw aspath data. */ unsigned int -aspath_key_make (struct aspath *aspath) +aspath_key_make (void *p) { + struct aspath * aspath = (struct aspath *) p; unsigned int key = 0; unsigned int i; struct assegment *seg = aspath->segments; -- cgit v1.2.1