diff options
Diffstat (limited to 'lib/libcrypto/asn1/a_strnid.c')
-rw-r--r-- | lib/libcrypto/asn1/a_strnid.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/lib/libcrypto/asn1/a_strnid.c b/lib/libcrypto/asn1/a_strnid.c index 74bc7b316cc..6c59dcc8ec6 100644 --- a/lib/libcrypto/asn1/a_strnid.c +++ b/lib/libcrypto/asn1/a_strnid.c @@ -264,26 +264,24 @@ main() int i, last_nid = -1; for (tmp = tbl_standard, i = 0; - i < sizeof(tbl_standard)/sizeof(ASN1_STRING_TABLE); i++, tmp++) - { - if (tmp->nid < last_nid) - { - last_nid = 0; - break; - } - last_nid = tmp->nid; + i < sizeof(tbl_standard)/sizeof(ASN1_STRING_TABLE); i++, tmp++) { + if (tmp->nid < last_nid) { + last_nid = 0; + break; } + last_nid = tmp->nid; + } - if (last_nid != 0) - { + if (last_nid != 0) { printf("Table order OK\n"); exit(0); - } + } for (tmp = tbl_standard, i = 0; - i < sizeof(tbl_standard)/sizeof(ASN1_STRING_TABLE); i++, tmp++) - printf("Index %d, NID %d, Name=%s\n", i, tmp->nid, - OBJ_nid2ln(tmp->nid)); + i < sizeof(tbl_standard)/sizeof(ASN1_STRING_TABLE); i++, tmp++) { + printf("Index %d, NID %d, Name=%s\n", i, tmp->nid, + OBJ_nid2ln(tmp->nid)); + } } |