summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-12-22 08:15:05 +0000
committermmcc <mmcc@openbsd.org>2015-12-22 08:15:05 +0000
commit8363d8f504f7be94edf5883bb42433f533d8e68b (patch)
tree4c280cba837af8cf9b006c3d7e89263bdb7e596c
parentWrap long lines. (diff)
downloadwireguard-openbsd-8363d8f504f7be94edf5883bb42433f533d8e68b.tar.xz
wireguard-openbsd-8363d8f504f7be94edf5883bb42433f533d8e68b.zip
Remove a couple needless allocation casts. No binary change.
-rw-r--r--libexec/ld.so/ldconfig/shlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ld.so/ldconfig/shlib.c b/libexec/ld.so/ldconfig/shlib.c
index c38046c0c8f..eced53c4b18 100644
--- a/libexec/ld.so/ldconfig/shlib.c
+++ b/libexec/ld.so/ldconfig/shlib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shlib.c,v 1.11 2015/01/18 04:48:24 deraadt Exp $ */
+/* $OpenBSD: shlib.c,v 1.12 2015/12/22 08:15:05 mmcc Exp $ */
/* $NetBSD: shlib.c,v 1.13 1998/04/04 01:00:29 fvdl Exp $ */
/*
@@ -81,7 +81,7 @@ add_search_dir(char *name)
!strncmp(search_dirs[i], name, len))
return;
n_search_dirs++;
- search_dirs = (char **)xrealloc(search_dirs,
+ search_dirs = xrealloc(search_dirs,
n_search_dirs * sizeof search_dirs[0]);
search_dirs[n_search_dirs - 1] = xmalloc(++len);
(void)strlcpy(search_dirs[n_search_dirs - 1], name, len);
@@ -107,7 +107,7 @@ remove_search_dir(char *name)
bcopy(&search_dirs[i+1], &search_dirs[i],
(n_search_dirs - i - 1) * sizeof search_dirs[0]);
n_search_dirs--;
- search_dirs = (char **)xrealloc(search_dirs,
+ search_dirs = xrealloc(search_dirs,
n_search_dirs * sizeof search_dirs[0]);
break;
}