From a329cf19fc2ad2d6b69f5585388aedf928fbf4da Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sun, 9 May 2010 09:53:29 +0000 Subject: use _dl_memset() instead of bzero() here. Unbreaks sparc build. ok kettenis@ --- libexec/ld.so/library_subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libexec/ld.so/library_subr.c') diff --git a/libexec/ld.so/library_subr.c b/libexec/ld.so/library_subr.c index 8ec364bc107..a1eb5fae752 100644 --- a/libexec/ld.so/library_subr.c +++ b/libexec/ld.so/library_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: library_subr.c,v 1.29 2010/05/01 07:46:30 jsg Exp $ */ +/* $OpenBSD: library_subr.c,v 1.30 2010/05/09 09:53:28 matthieu Exp $ */ /* * Copyright (c) 2002 Dale Rahn @@ -160,7 +160,7 @@ nohints: else searchpath = DEFAULT_PATH; } - bzero(&bsod, sizeof(bsod)); + _dl_memset(&bsod, 0, sizeof(bsod)); pp = searchpath; while (pp) { path = lp; -- cgit v1.2.3