diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2014-07-18 04:16:10 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2014-07-18 04:16:10 +0000 |
commit | d66b8fbf7252de8b957c5c466b8ba14bc722e270 (patch) | |
tree | 736622853fd18882e6c97ec7e00796d3e5b46328 /lib | |
parent | 0fa794d21065f8093aa81f8a9bbd92bab0c7b9f2 (diff) |
Change lsearch()'s "base" argument to require a non-const pointer to
align with POSIX and other systems.
Pointed out by Elliott Hughes on tech
ok deraadt
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdlib/lsearch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/lsearch.c b/lib/libc/stdlib/lsearch.c index a01d80e0083..8cad05f5102 100644 --- a/lib/libc/stdlib/lsearch.c +++ b/lib/libc/stdlib/lsearch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lsearch.c,v 1.4 2009/10/27 23:59:59 deraadt Exp $ */ +/* $OpenBSD: lsearch.c,v 1.5 2014/07/18 04:16:09 matthew Exp $ */ /* * Copyright (c) 1989, 1993 @@ -41,7 +41,7 @@ static void *linear_base(const void *, const void *, size_t *, size_t, cmp_fn_t, int); void * -lsearch(const void *key, const void *base, size_t *nelp, size_t width, +lsearch(const void *key, void *base, size_t *nelp, size_t width, cmp_fn_t compar) { |