aboutsummaryrefslogtreecommitdiffstats
path: root/net/dns_resolver
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2014-09-16 12:36:08 -0400
committerDavid Howells <dhowells@redhat.com>2014-09-16 12:36:08 -0400
commit0c903ab64feb0fe83eac9f67a06e2f5b9508de16 (patch)
tree809464ff50aa99c1caaf650230fea4f30ef8138c /net/dns_resolver
parentc06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 (diff)
KEYS: Make the key matching functions return bool
Make the key matching functions pointed to by key_match_data::cmp return bool rather than int. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com>
Diffstat (limited to 'net/dns_resolver')
-rw-r--r--net/dns_resolver/dns_key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dns_resolver/dns_key.c b/net/dns_resolver/dns_key.c
index a07b9ba7e0b7..31cd4fd75486 100644
--- a/net/dns_resolver/dns_key.c
+++ b/net/dns_resolver/dns_key.c
@@ -176,8 +176,8 @@ static void dns_resolver_free_preparse(struct key_preparsed_payload *prep)
176 * The domain name may be a simple name or an absolute domain name (which 176 * The domain name may be a simple name or an absolute domain name (which
177 * should end with a period). The domain name is case-independent. 177 * should end with a period). The domain name is case-independent.
178 */ 178 */
179static int dns_resolver_cmp(const struct key *key, 179static bool dns_resolver_cmp(const struct key *key,
180 const struct key_match_data *match_data) 180 const struct key_match_data *match_data)
181{ 181{
182 int slen, dlen, ret = 0; 182 int slen, dlen, ret = 0;
183 const char *src = key->description, *dsp = match_data->raw_data; 183 const char *src = key->description, *dsp = match_data->raw_data;