NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/44643: Word bool used as variable name.



>Number:         44643
>Category:       lib
>Synopsis:       Word bool used as variable name.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 26 12:25:00 +0000 2011
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Word bool used as variable name.
>How-To-Repeat:

>Fix:
diff -u -r1.1.1.1 tasn_prn.c
--- crypto/external/bsd/openssl/dist/crypto/asn1/tasn_prn.c     19 Jul 2009 
23:02:55 -0000      1.1.1.1
+++ crypto/external/bsd/openssl/dist/crypto/asn1/tasn_prn.c     25 Feb 2011 
07:23:39 -0000
@@ -446,11 +446,11 @@
        return 1;
        }
 
-static int asn1_print_boolean_ctx(BIO *out, const int bool,
+static int asn1_print_boolean_ctx(BIO *out, const int on_off,
                                                        const ASN1_PCTX *pctx)
        {
        const char *str;
-       switch (bool)
+       switch (on_off)
                {
                case -1:
                str = "BOOL ABSENT";
@@ -574,10 +574,10 @@
                {
                case V_ASN1_BOOLEAN:
                        {
-                       int bool = *(int *)fld;
-                       if (bool == -1)
-                               bool = it->size;
-                       ret = asn1_print_boolean_ctx(out, bool, pctx);
+                       int bool_int = *(int *)fld;
+                       if (bool_int == -1)
+                               bool_int = it->size;
+                       ret = asn1_print_boolean_ctx(out, bool_int, pctx);
                        }
                break;
 



Home | Main Index | Thread Index | Old Index