diff options
author | 2014-07-18 04:16:09 +0000 | |
---|---|---|
committer | 2014-07-18 04:16:09 +0000 | |
commit | 177a74275783eeaff07d9dbc04d082f1e53274cc (patch) | |
tree | dffb9a61f3239572a305c86a608d36742ae93b8b /lib/libc/stdlib/lsearch.c | |
parent | restore umask around listener socket creation (dropped in streamlocal patch (diff) | |
download | wireguard-openbsd-177a74275783eeaff07d9dbc04d082f1e53274cc.tar.xz wireguard-openbsd-177a74275783eeaff07d9dbc04d082f1e53274cc.zip |
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/libc/stdlib/lsearch.c')
-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) { |