diff options
author | Beat Bolli <me+github@drbeat.li> | 2016-11-18 09:53:48 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-11-18 07:35:01 -0500 |
commit | 09b894b5124f8a1f389edd9722c691275783ef5d (patch) | |
tree | 97d530c5836f3cb0d07b010568182915854dd005 | |
parent | f4ef1c53486d378ab2e2ef3427c0eb1c2fea358f (diff) | |
download | openssl-new-09b894b5124f8a1f389edd9722c691275783ef5d.tar.gz |
Use consistent variable names
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 <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1949)
(cherry picked from commit 4b9c2669f31da26bfe56f629973fa014083dc2a0)
-rw-r--r-- | doc/crypto/X509_NAME_get_index_by_NID.pod | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/crypto/X509_NAME_get_index_by_NID.pod b/doc/crypto/X509_NAME_get_index_by_NID.pod index 109f561324..cdec4b1d6d 100644 --- a/doc/crypto/X509_NAME_get_index_by_NID.pod +++ b/doc/crypto/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); |