[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Fri Nov 18 12:30:24 UTC 2016


The branch master has been updated
       via  5defbe6f3892577af5811e12809233e7f8a69830 (commit)
      from  663ece0faa3d87a81838011f81edb8ede97018fd (commit)


- Log -----------------------------------------------------------------
commit 5defbe6f3892577af5811e12809233e7f8a69830
Author: Beat Bolli <me+github at drbeat.li>
Date:   Fri Nov 18 09:47:50 2016 +0100

    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 <levitte at openssl.org>
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/1949)

-----------------------------------------------------------------------

Summary of changes:
 doc/man3/X509_NAME_get_index_by_NID.pod | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/doc/man3/X509_NAME_get_index_by_NID.pod b/doc/man3/X509_NAME_get_index_by_NID.pod
index 042da24..2d6713b 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);


More information about the openssl-commits mailing list