aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-elf/libmap.c
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>2003-09-13 21:43:08 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>2003-09-13 21:43:08 +0000
commit4402996dea6d9df64ac8c395f31b5d90d364207b (patch)
tree919ac9ae9921903ef959120200906c83c32193b7 /libexec/rtld-elf/libmap.c
parentbe2c4e5415af82b1d0e782dcfcb21e61c9452a91 (diff)
Notes
Diffstat (limited to 'libexec/rtld-elf/libmap.c')
-rw-r--r--libexec/rtld-elf/libmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rtld-elf/libmap.c b/libexec/rtld-elf/libmap.c
index bdb9151180061..56e04fdaf209c 100644
--- a/libexec/rtld-elf/libmap.c
+++ b/libexec/rtld-elf/libmap.c
@@ -41,7 +41,7 @@ static struct lm_list * lmp_init (char *);
#define iseol(c) (((c) == '#') || ((c) == '\0') || \
((c) == '\n') || ((c) == '\r'))
-void
+int
lm_init (void)
{
FILE *fp;
@@ -55,7 +55,7 @@ lm_init (void)
TAILQ_INIT(&lmp_head);
if ((fp = fopen(_PATH_LIBMAP_CONF, "r")) == NULL)
- return;
+ return (1);
p = NULL;
while ((cp = fgets(line, MAXPATHLEN + 1, fp)) != NULL) {
@@ -128,7 +128,7 @@ lm_init (void)
lm_add(p, f, t);
}
fclose(fp);
- return;
+ return (0);
}
static void