From: Beat Bolli Date: Fri, 18 Nov 2016 08:47:50 +0000 (+0100) Subject: Use consistent variable names in example X-Git-Tag: OpenSSL_1_1_1-pre1~3003 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5defbe6f3892577af5811e12809233e7f8a69830;p=oweals%2Fopenssl.git Use consistent variable names in example In the X509_NAME_get_index_by_NID.pod example, the initialized variable is called "loc", but the one used in the for loop is called "lastpos". Make the names match. CLA: trivial Reviewed-by: Richard Levitte Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/1949) --- diff --git a/doc/man3/X509_NAME_get_index_by_NID.pod b/doc/man3/X509_NAME_get_index_by_NID.pod index 042da24697..2d6713ba29 100644 --- a/doc/man3/X509_NAME_get_index_by_NID.pod +++ b/doc/man3/X509_NAME_get_index_by_NID.pod @@ -83,10 +83,9 @@ Process all entries: Process all commonName entries: - int loc; + int lastpos = -1; X509_NAME_ENTRY *e; - loc = -1; for (;;) { lastpos = X509_NAME_get_index_by_NID(nm, NID_commonName, lastpos);