From: Richard Levitte <levitte@openssl.org>
Date: Thu, 27 Jun 2002 09:54:07 +0000 (+0000)
Subject: Use bg instead of bag as argument to macros, to avoid clashes with
X-Git-Tag: OpenSSL_0_9_6e~26^2~40
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0df748e7e2b2c3029ee152f96f89ed23690bda39;p=oweals%2Fopenssl.git

Use bg instead of bag as argument to macros, to avoid clashes with
structure field names.
PR: 112
---

diff --git a/crypto/pkcs12/pkcs12.h b/crypto/pkcs12/pkcs12.h
index 1786b6d4f3..dd338f266c 100644
--- a/crypto/pkcs12/pkcs12.h
+++ b/crypto/pkcs12/pkcs12.h
@@ -156,8 +156,8 @@ union {
 #define M_PKCS12_decrypt_skey PKCS12_decrypt_skey
 #define M_PKCS8_decrypt PKCS8_decrypt
 
-#define M_PKCS12_bag_type(bag) OBJ_obj2nid(bag->type)
-#define M_PKCS12_cert_bag_type(bag) OBJ_obj2nid(bag->value.bag->type)
+#define M_PKCS12_bag_type(bg) OBJ_obj2nid((bg)->type)
+#define M_PKCS12_cert_bag_type(bg) OBJ_obj2nid((bg)->value.bag->type)
 #define M_PKCS12_crl_bag_type M_PKCS12_cert_bag_type
 
 #define PKCS12_get_attr(bag, attr_nid) \