summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-04-20 16:15:01 +0000
committerjsing <jsing@openbsd.org>2014-04-20 16:15:01 +0000
commit62dca2521fd3945d1b796a3420e0bb1990ce2bfa (patch)
treecfa265cdd2e7cfc1027cc2470f4f5398fd06669f
parentCheck strlcpy of the script path names for overflow and use the size of the (diff)
downloadwireguard-openbsd-62dca2521fd3945d1b796a3420e0bb1990ce2bfa.tar.xz
wireguard-openbsd-62dca2521fd3945d1b796a3420e0bb1990ce2bfa.zip
More KNF.
-rw-r--r--lib/libcrypto/x509/x509_obj.c2
-rw-r--r--lib/libcrypto/x509/x509_trs.c4
-rw-r--r--lib/libssl/src/crypto/x509/x509_obj.c2
-rw-r--r--lib/libssl/src/crypto/x509/x509_trs.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/lib/libcrypto/x509/x509_obj.c b/lib/libcrypto/x509/x509_obj.c
index a50b05bb7a1..061ea62cac3 100644
--- a/lib/libcrypto/x509/x509_obj.c
+++ b/lib/libcrypto/x509/x509_obj.c
@@ -68,7 +68,7 @@ X509_NAME_oneline(X509_NAME *a, char *buf, int len)
{
X509_NAME_ENTRY *ne;
int i;
- int n, lold, l,l1, l2, num, j, type;
+ int n, lold, l, l1, l2, num, j, type;
const char *s;
char *p;
unsigned char *q;
diff --git a/lib/libcrypto/x509/x509_trs.c b/lib/libcrypto/x509/x509_trs.c
index 90fd1285913..7d4d209d0ca 100644
--- a/lib/libcrypto/x509/x509_trs.c
+++ b/lib/libcrypto/x509/x509_trs.c
@@ -242,8 +242,8 @@ X509_TRUST_cleanup(void)
{
unsigned int i;
- for(i = 0; i < X509_TRUST_COUNT; i++)
- trtable_free(trstandard + i);
+ for (i = 0; i < X509_TRUST_COUNT; i++)
+ trtable_free(trstandard + i);
sk_X509_TRUST_pop_free(trtable, trtable_free);
trtable = NULL;
}
diff --git a/lib/libssl/src/crypto/x509/x509_obj.c b/lib/libssl/src/crypto/x509/x509_obj.c
index a50b05bb7a1..061ea62cac3 100644
--- a/lib/libssl/src/crypto/x509/x509_obj.c
+++ b/lib/libssl/src/crypto/x509/x509_obj.c
@@ -68,7 +68,7 @@ X509_NAME_oneline(X509_NAME *a, char *buf, int len)
{
X509_NAME_ENTRY *ne;
int i;
- int n, lold, l,l1, l2, num, j, type;
+ int n, lold, l, l1, l2, num, j, type;
const char *s;
char *p;
unsigned char *q;
diff --git a/lib/libssl/src/crypto/x509/x509_trs.c b/lib/libssl/src/crypto/x509/x509_trs.c
index 90fd1285913..7d4d209d0ca 100644
--- a/lib/libssl/src/crypto/x509/x509_trs.c
+++ b/lib/libssl/src/crypto/x509/x509_trs.c
@@ -242,8 +242,8 @@ X509_TRUST_cleanup(void)
{
unsigned int i;
- for(i = 0; i < X509_TRUST_COUNT; i++)
- trtable_free(trstandard + i);
+ for (i = 0; i < X509_TRUST_COUNT; i++)
+ trtable_free(trstandard + i);
sk_X509_TRUST_pop_free(trtable, trtable_free);
trtable = NULL;
}