From 743392ea0aab4523b31d5944da112233dda39056 Mon Sep 17 00:00:00 2001 From: "David M. Syzdek" Date: Tue, 10 Jan 2023 13:38:54 -0900 Subject: otp-altdict: converting from bindle_bindex() to otputil_skey_dict_value() --- src/otp-altdict.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/otp-altdict.c b/src/otp-altdict.c index 89a8f41..d88bcc6 100644 --- a/src/otp-altdict.c +++ b/src/otp-altdict.c @@ -220,12 +220,6 @@ my_verbose( ... ); -static int -my_word_cmp_key( - const void * a, - const void * b ); - - static int my_word_cmp_obj( const void * a, @@ -588,7 +582,7 @@ my_buff_process_word( // search for S/KEY dictionary word if (!(cnf->allow_dups)) { - if (bindle_bindex(word, otputil_skey_rfc1760_dict, 2048, sizeof(char *), 0, NULL, my_word_cmp_key) != -1) + if (otputil_skey_dict_value(word) != -1) { my_verbose(cnf, "word '%s': is contained in S/KEY dictionary\n", word); return(0); @@ -916,19 +910,6 @@ my_verbose( } -int -my_word_cmp_key( - const void * a, - const void * b ) -{ - const char * const * obj; - const char * key; - key = a; - obj = b; - return(strcasecmp(key, *obj)); -} - - int my_word_cmp_obj( const void * a, -- cgit v1.2.3