diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-10-17 15:27:12 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-10-19 13:14:45 -0400 | 
| commit | 74df8d6d9d665784b0273151fe04cd2f9ff5b353 (patch) | |
| tree | 7b0d38ba7c6e9605634d40a64c4b904295d59d80 /nhrpd/reqid.c | |
| parent | 27fa33984bd6276942459a4c68abd15d04a9333e (diff) | |
*: Replace hash_cmp function return value to a bool
The ->hash_cmp and linked list ->cmp functions were sometimes
being used interchangeably and this really is not a good
thing.  So let's modify the hash_cmp function pointer to return
a boolean and convert everything to use the new syntax.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'nhrpd/reqid.c')
| -rw-r--r-- | nhrpd/reqid.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/nhrpd/reqid.c b/nhrpd/reqid.c index e8ad518e58..08a007bdf9 100644 --- a/nhrpd/reqid.c +++ b/nhrpd/reqid.c @@ -8,9 +8,10 @@ static unsigned int nhrp_reqid_key(void *data)  	return r->request_id;  } -static int nhrp_reqid_cmp(const void *data, const void *key) +static bool nhrp_reqid_cmp(const void *data, const void *key)  {  	const struct nhrp_reqid *a = data, *b = key; +  	return a->request_id == b->request_id;  }  | 
