Diff

Differences From Artifact [5e1ae9e427]:

To Artifact [c8c7e5c610]:


   193    193   		fprintf(stderr, "%s():%i: ", func, line);
   194    194   		fprintf(stderr, "REALLOC(%p) = %p", ptr, retval);
   195    195   		fprintf(stderr, "\n");
   196    196   		fflush(stderr);
   197    197   	}
   198    198   
   199    199   	if (retval == NULL) {
   200         -		CACKEY_DEBUG_PRINTF(" *** ERROR *** realloc returned NULL");
          200  +		CACKEY_DEBUG_PRINTF(" *** ERROR *** realloc returned NULL (size = %lu)", (unsigned long) size);
   201    201   	}
   202    202   
   203    203   	return(retval);
   204    204   }
   205    205   
   206    206   static char *CACKEY_DEBUG_FUNC_STRDUP(const char *ptr, const char *func, int line) {
   207    207   	char *retval;
................................................................................
   385    385   			return("SCARD_E_DUPLICATE_READER");
   386    386   		case SCARD_E_CARD_UNSUPPORTED:
   387    387   			return("SCARD_E_CARD_UNSUPPORTED");
   388    388   		case SCARD_E_NO_SERVICE:
   389    389   			return("SCARD_E_NO_SERVICE");
   390    390   		case SCARD_E_SERVICE_STOPPED:
   391    391   			return("SCARD_E_SERVICE_STOPPED");
   392         -		case SCARD_W_INSERTED_CARD:
   393         -			return("SCARD_W_INSERTED_CARD");
   394    392   		case SCARD_E_UNSUPPORTED_FEATURE:
   395    393   			return("SCARD_E_UNSUPPORTED_FEATURE");
          394  +#ifdef SCARD_W_INSERTED_CARD
          395  +		case SCARD_W_INSERTED_CARD:
          396  +			return("SCARD_W_INSERTED_CARD");
          397  +#endif
   396    398   #ifdef SCARD_E_NO_READERS_AVAILABLE
   397    399   		case SCARD_E_NO_READERS_AVAILABLE:
   398    400   			return("SCARD_E_NO_READERS_AVAILABLE");
   399    401   #endif
   400    402   	}
   401    403   
   402    404   	return("UNKNOWN");