提交 6da165c6 编写于 作者: A Andy Polyakov

ans1/tasn_prn.c: avoid bool in variable names.

PR: 2776
上级 d0595f17
...@@ -446,11 +446,11 @@ static int asn1_print_fsname(BIO *out, int indent, ...@@ -446,11 +446,11 @@ static int asn1_print_fsname(BIO *out, int indent,
return 1; return 1;
} }
static int asn1_print_boolean_ctx(BIO *out, const int bool, static int asn1_print_boolean_ctx(BIO *out, int boolval,
const ASN1_PCTX *pctx) const ASN1_PCTX *pctx)
{ {
const char *str; const char *str;
switch (bool) switch (boolval)
{ {
case -1: case -1:
str = "BOOL ABSENT"; str = "BOOL ABSENT";
...@@ -574,10 +574,10 @@ static int asn1_primitive_print(BIO *out, ASN1_VALUE **fld, ...@@ -574,10 +574,10 @@ static int asn1_primitive_print(BIO *out, ASN1_VALUE **fld,
{ {
case V_ASN1_BOOLEAN: case V_ASN1_BOOLEAN:
{ {
int bool = *(int *)fld; int boolval = *(int *)fld;
if (bool == -1) if (boolval == -1)
bool = it->size; boolval = it->size;
ret = asn1_print_boolean_ctx(out, bool, pctx); ret = asn1_print_boolean_ctx(out, boolval, pctx);
} }
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册