aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2015-12-24 15:51:23 +0000
committerDr. Stephen Henson <steve@openssl.org>2016-01-11 17:50:27 +0000
commit62d0577e0d5e3703436d0fba362d516481291810 (patch)
tree5298b79f976f3264b244acba116fcdfbc8172a93 /apps
parente6b5c341b94d357b0158ad74b12edd51399a4b87 (diff)
downloadopenssl-62d0577e0d5e3703436d0fba362d516481291810.tar.gz
Add lh_new() inlining
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps')
-rw-r--r--apps/openssl.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/openssl.c b/apps/openssl.c
index 539de761f0..6bd14ffce8 100644
--- a/apps/openssl.c
+++ b/apps/openssl.c
@@ -700,15 +700,11 @@ static int function_cmp(const FUNCTION * a, const FUNCTION * b)
return strncmp(a->name, b->name, 8);
}
-static IMPLEMENT_LHASH_COMP_FN(function, FUNCTION)
-
static unsigned long function_hash(const FUNCTION * a)
{
return lh_strhash(a->name);
}
-static IMPLEMENT_LHASH_HASH_FN(function, FUNCTION)
-
static int SortFnByName(const void *_f1, const void *_f2)
{
const FUNCTION *f1 = _f1;
@@ -860,7 +856,7 @@ static LHASH_OF(FUNCTION) *prog_init(void)
for (i = 0, f = functions; f->name != NULL; ++f, ++i) ;
qsort(functions, i, sizeof(*functions), SortFnByName);
- if ((ret = lh_FUNCTION_new()) == NULL)
+ if ((ret = lh_FUNCTION_new(function_hash, function_cmp)) == NULL)
return (NULL);
for (f = functions; f->name != NULL; f++)