}
i = CRYPTO_add(&e->struct_ref,-1,CRYPTO_LOCK_ENGINE);
#ifdef REF_PRINT
- REF_PRINT("ENGINE",e);
+ REF_PRINT2("ENGINE",e,struct_ref);
#endif
if (i > 0) return 1;
#ifdef REF_CHECK
/* Used to checking reference counts, most while doing perl5 stuff :-) */
#ifdef REF_PRINT
#undef REF_PRINT
-#define REF_PRINT(a,b) fprintf(stderr,"%08X:%4d:%s\n",(int)b,b->references,a)
+#undef REF_PRINT2
+#define REF_PRINT(a,b) REF_PRINT2(a,b,references)
+#define REF_PRINT2(a,b,r) fprintf(stderr,"%08X:%4d:%s\n",(int)b,b->r,a)
#endif
#ifndef DEVRANDOM