[Pcsclite-cvs-commit] CVS PCSC/src

CVS User rousseau ludovic.rousseau@free.fr
Tue, 12 Apr 2005 07:42:15 +0000


Update of /cvsroot/pcsclite/PCSC/src
In directory haydn:/tmp/cvs-serv9979

Modified Files:
	debuglog.c 
Log Message:
DebugLogSuppress(), debug_msg() and debug_xxd are defined only for pcscd
and not for libpcsclite.so


--- /cvsroot/pcsclite/PCSC/src/debuglog.c	2005/04/12 07:40:58	1.39
+++ /cvsroot/pcsclite/PCSC/src/debuglog.c	2005/04/12 07:42:15	1.40
@@ -8,7 +8,7 @@
  * Copyright (C) 1999-2005
  *  Ludovic Rousseau <ludovic.rousseau@free.fr>
  *
- * $Id: debuglog.c,v 1.39 2005/04/12 07:40:58 rousseau Exp $
+ * $Id: debuglog.c,v 1.40 2005/04/12 07:42:15 rousseau Exp $
  */
 
 #include "config.h"
@@ -168,10 +168,12 @@
 		fprintf(stderr, "%s\n", DebugBuffer);
 } /* log_xxd */
 
+#ifdef PCSCD
 void DebugLogSuppress(const int lSType)
 {
 	LogSuppress = lSType;
 }
+#endif
 
 void DebugLogSetLogType(const int dbgtype)
 {
@@ -383,7 +385,9 @@
 
 /*
  * old function supported for backward object code compatibility
+ * defined only for pcscd
  */
+#ifdef PCSCD
 void debug_msg(const char *fmt, ...)
 {
 	char DebugBuffer[DEBUG_BUF_SIZE];
@@ -417,4 +421,5 @@
 {
 	log_xxd(PCSC_LOG_ERROR, msg, buffer, len);
 } /* debug_xxd */
+#endif