Commit 2e6d51d7 authored by Paul Yang's avatar Paul Yang Committed by Richard Levitte
Browse files

Fix doc-nits in doc/man3/DEFINE_STACK_OF.pod



<compar> to <compare> to match the var name in function prototype

Reviewed-by: default avatarPaul Dale <paul.dale@oracle.com>
Reviewed-by: default avatarAndy Polyakov <appro@openssl.org>
Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4559)

(cherry picked from commit d9c989fe)
parent b8dc5f4d
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -94,12 +94,12 @@ B<NULL>.
sk_TYPE_value() returns element B<idx> in B<sk>, where B<idx> starts at
sk_TYPE_value() returns element B<idx> in B<sk>, where B<idx> starts at
zero. If B<idx> is out of range then B<NULL> is returned.
zero. If B<idx> is out of range then B<NULL> is returned.


sk_TYPE_new() allocates a new empty stack using comparison function B<compar>.
sk_TYPE_new() allocates a new empty stack using comparison function B<compare>.
If B<compar> is B<NULL> then no comparison function is used.
If B<compare> is B<NULL> then no comparison function is used.


sk_TYPE_new_null() allocates a new empty stack with no comparison function.
sk_TYPE_new_null() allocates a new empty stack with no comparison function.


sk_TYPE_set_cmp_func() sets the comparison function of B<sk> to B<compar>.
sk_TYPE_set_cmp_func() sets the comparison function of B<sk> to B<compare>.
The previous comparison function is returned or B<NULL> if there was
The previous comparison function is returned or B<NULL> if there was
no previous comparison function.
no previous comparison function.