diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-21 22:56:03 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-24 07:33:13 -0400 | 
| commit | 1a4189d4a1d2170f2fc3929b4e422e9c3b75a60a (patch) | |
| tree | 62807bdcfbe5c8ee681fdeb623b5fe02aeab414e /isisd/fabricd.c | |
| parent | cb9f254c01a79c15dfa21f719396ca0d02e1c4c2 (diff) | |
bgpd, isisd, lib: Make key values const for skiplist
Make some key values const for the skiplist code.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'isisd/fabricd.c')
| -rw-r--r-- | isisd/fabricd.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/isisd/fabricd.c b/isisd/fabricd.c index b9c27d51bd..28cc65380f 100644 --- a/isisd/fabricd.c +++ b/isisd/fabricd.c @@ -122,9 +122,9 @@ static bool neighbor_entry_hash_cmp(const void *a, const void *b)  	return memcmp(na->id, nb->id, sizeof(na->id)) == 0;  } -static int neighbor_entry_list_cmp(void *a, void *b) +static int neighbor_entry_list_cmp(const void *a, const void *b)  { -	struct neighbor_entry *na = a, *nb = b; +	const struct neighbor_entry *na = a, *nb = b;  	return -memcmp(na->id, nb->id, sizeof(na->id));  }  | 
