summaryrefslogtreecommitdiffstats
path: root/crypto/stack/stack.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-04-29 22:46:32 +0200
committerRichard Levitte <levitte@openssl.org>2003-04-29 22:46:32 +0200
commitd584fd6b661604e2e70cc5d27321666733ceed78 (patch)
tree34be4792a887b5706bf92252276d932dd701fb2c /crypto/stack/stack.c
parentSome variables were uninitialised... (diff)
downloadopenssl-d584fd6b661604e2e70cc5d27321666733ceed78.tar.xz
openssl-d584fd6b661604e2e70cc5d27321666733ceed78.zip
Include objects.h to get a correct declaration of OBJ_bsearch_ex(),
not to mention the OBJ_BSEARCH_* macros.
Diffstat (limited to 'crypto/stack/stack.c')
-rw-r--r--crypto/stack/stack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/stack/stack.c b/crypto/stack/stack.c
index 98a3eeee64..1d2b47ee67 100644
--- a/crypto/stack/stack.c
+++ b/crypto/stack/stack.c
@@ -68,6 +68,7 @@
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/stack.h>
+#include <openssl/objects.h>
#undef MIN_NODES
#define MIN_NODES 4
@@ -233,7 +234,7 @@ static int internal_find(STACK *st, char *data, int ret_val_options)
* not (type *) pointers, but the *pointers* to (type *) pointers,
* so we get our extra level of pointer dereferencing that way. */
comp_func=(int (*)(const void *,const void *))(st->comp);
- r=(char **)OBJ_bsearch(&data,(char *)st->data,
+ r=(char **)OBJ_bsearch_ex((char *)&data,(char *)st->data,
st->num,sizeof(char *),comp_func,ret_val_options);
if (r == NULL) return(-1);
return((int)(r-st->data));