From e6b5c341b94d357b0158ad74b12edd51399a4b87 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 11 Jan 2016 14:11:13 +0000 Subject: Inline LHASH_OF Make LHASH_OF use static inline functions. Add new lh_get_down_load and lh_set_down_load functions and their typesafe inline equivalents. Make lh_error a function instead of a macro. Reviewed-by: Rich Salz --- crypto/lhash/lhash.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'crypto/lhash') diff --git a/crypto/lhash/lhash.c b/crypto/lhash/lhash.c index 4018b60556..4642bda322 100644 --- a/crypto/lhash/lhash.c +++ b/crypto/lhash/lhash.c @@ -422,3 +422,18 @@ unsigned long lh_num_items(const _LHASH *lh) { return lh ? lh->num_items : 0; } + +unsigned long lh_get_down_load(const _LHASH *lh) +{ + return lh->down_load; +} + +void lh_set_down_load(_LHASH *lh, unsigned long down_load) +{ + lh->down_load = down_load; +} + +int lh_error(_LHASH *lh) +{ + return lh->error; +} -- cgit v1.2.3