diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-07-27 23:36:20 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-07-27 23:36:23 +0200 |
commit | 70b18245529eaa66fc95ab5982d3b94753bab221 (patch) | |
tree | 2d0937a6bdc8065fdc82f5b270c15ec161401449 | |
parent | 9c0187166c2ac045d9d886d60ebe7bddbe83e774 (diff) | |
download | gnutls-70b18245529eaa66fc95ab5982d3b94753bab221.tar.gz |
x509: avoid using int declaration within a for-loop
This addresses compilation problem with old compilers,
and brings consistency as this type of declaration is not
used in gnutls' code.
-rw-r--r-- | lib/x509/name_constraints.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/x509/name_constraints.c b/lib/x509/name_constraints.c index 6e6ddf175e..2f743a2dd5 100644 --- a/lib/x509/name_constraints.c +++ b/lib/x509/name_constraints.c @@ -156,7 +156,7 @@ int _gnutls_name_constraints_intersect(name_constraints_node_st ** _nc, name_constraints_node_st ** _nc_excluded) { name_constraints_node_st *nc, *nc2, *t, *tmp, *dest = NULL, *prev = NULL; - int ret; + int ret, type; /* temporary array to see, if we need to add universal excluded constraints * (see phase 3 for details) @@ -238,7 +238,7 @@ int _gnutls_name_constraints_intersect(name_constraints_node_st ** _nc, * and we didn't have at the beginning, we have to add a new * excluded constraint with universal wildcard * (since the intersection of permitted is now empty). */ - for (int type = 1; type <= GNUTLS_SAN_MAX; type++) { + for (type = 1; type <= GNUTLS_SAN_MAX; type++) { if (types_with_empty_intersection[type-1] == 0) continue; _gnutls_hard_log("Adding universal excluded name constraintfor type %d.\n", type); |