aboutsummaryrefslogtreecommitdiff
path: root/lib/bsearch.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bsearch.c')
-rw-r--r--lib/bsearch.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/bsearch.c b/lib/bsearch.c
index 82512fe7b33c..8b3aae5ae77a 100644
--- a/lib/bsearch.c
+++ b/lib/bsearch.c
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-only
/*
* A generic implementation of binary search for the Linux kernel
*
* Copyright (C) 2008-2009 Ksplice, Inc.
* Author: Tim Abbott <[email protected]>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; version 2.
*/
#include <linux/export.h>
@@ -32,7 +29,7 @@
* the same comparison function for both sort() and bsearch().
*/
void *bsearch(const void *key, const void *base, size_t num, size_t size,
- int (*cmp)(const void *key, const void *elt))
+ cmp_func_t cmp)
{
const char *pivot;
int result;