summaryrefslogtreecommitdiff
path: root/libexec/ld.so/sod.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-06 20:04:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-06 20:04:01 +0000
commitfb77cb0f007d25ab8a99b64eb77a2c87f0f2716b (patch)
tree1ca0d8d9ec13024a0568af5622c3aad9598e5f3f /libexec/ld.so/sod.c
parentb3bbcf5fcb95fdeddc3df57ff9537e59f900a405 (diff)
various proto, ansi, and knf repair. tested on all architectures that
use it. (build may require make cleandir because of .depend balony)
Diffstat (limited to 'libexec/ld.so/sod.c')
-rw-r--r--libexec/ld.so/sod.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/ld.so/sod.c b/libexec/ld.so/sod.c
index eb42997162b..9e8e3db24f5 100644
--- a/libexec/ld.so/sod.c
+++ b/libexec/ld.so/sod.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sod.c,v 1.17 2003/05/08 16:30:52 millert Exp $ */
+/* $OpenBSD: sod.c,v 1.18 2003/07/06 20:03:57 deraadt Exp $ */
/*
* Copyright (c) 1993 Paul Kranenburg
@@ -50,6 +50,7 @@
#include "sod.h"
int _dl_hinthash(char *cp, int vmajor, int vminor);
+void _dl_maphints(void);
/*
* Populate sod struct for dlopen's call to map_object
@@ -99,13 +100,13 @@ _dl_build_sod(const char *name, struct sod *sodp)
break;
case 2:
/* major version extension */
- major = strtol(tok, &etok, 10);
+ major = _dl_strtol(tok, &etok, 10);
if (*tok == '\0' || *etok != '\0')
goto backout;
break;
case 3:
/* minor version extension */
- minor = strtol(tok, &etok, 10);
+ minor = _dl_strtol(tok, &etok, 10);
if (*tok == '\0' || *etok != '\0')
goto backout;
break;