summaryrefslogtreecommitdiff
path: root/libexec/ld.so/sod.c
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2002-02-21 23:17:54 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2002-02-21 23:17:54 +0000
commit0d541fd9920e006280e60dadcdbd301c0b0e1d66 (patch)
tree1f92b0b3c9bb73f0740f3a77dfa9ca121a1f7555 /libexec/ld.so/sod.c
parent0ba9fd5be7b2c0adde410a88b340bfc1038e359c (diff)
cleanup of MD/MI ld.so (elf), most changes by art@ cleanup by me.
tested on alpha sparc64 powerpc.
Diffstat (limited to 'libexec/ld.so/sod.c')
-rw-r--r--libexec/ld.so/sod.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libexec/ld.so/sod.c b/libexec/ld.so/sod.c
index ca84e135865..e29f1fec1ed 100644
--- a/libexec/ld.so/sod.c
+++ b/libexec/ld.so/sod.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sod.c,v 1.7 2001/09/22 04:58:18 drahn Exp $ */
+/* $OpenBSD: sod.c,v 1.8 2002/02/21 23:17:53 drahn Exp $ */
/*
* Copyright (c) 1993 Paul Kranenburg
* All rights reserved.
@@ -44,10 +44,9 @@
#include <syscall.h>
#include "archdep.h"
+#include "util.h"
#define PAGSIZ __LDPGSZ
-char * _dl_strdup(const char *);
-void _dl_free(void *);
int _dl_hinthash(char *cp, int vmajor, int vminor);
/*
@@ -68,7 +67,7 @@ _dl_build_sod(name, sodp)
sodp->sod_major = sodp->sod_minor = 0;
/* does it look like /^lib/ ? */
- if (strncmp((char *)sodp->sod_name, "lib", 3) != 0)
+ if (_dl_strncmp((char *)sodp->sod_name, "lib", 3) != 0)
return;
/* is this a filename? */