[Pcsclite-cvs-commit] PKCS11/src p11x_prefs.c,1.8,1.9

rousseau@quantz.debian.org rousseau@quantz.debian.org
Sat, 04 Oct 2003 10:27:26 +0200


Update of /cvsroot/muscleapps/PKCS11/src
In directory quantz:/tmp/cvs-serv24653

Modified Files:
	p11x_prefs.c 
Log Message:
define getDLLDirectory _only_ under Windows since it is called in a code
only compiled under Windows


Index: p11x_prefs.c
===================================================================
RCS file: /cvsroot/muscleapps/PKCS11/src/p11x_prefs.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- p11x_prefs.c	5 Jun 2003 00:46:49 -0000	1.8
+++ p11x_prefs.c	4 Oct 2003 08:27:23 -0000	1.9
@@ -265,10 +265,10 @@
  * the trailing slash or backslash.
  * It is the caller's responsibility to free() the buffer that is returned.
  */
+#ifdef WIN32
 static char*
 getDLLDirectory()
 {
-#ifdef WIN32
     char *buf=NULL;
     const DWORD INCREMENT = 5;
     DWORD avail = INCREMENT;
@@ -314,10 +314,8 @@
 loser:
     free(buf);
     return NULL;
-#else
-    return NULL;
-#endif
 }
+#endif
 
 /******************************************************************************
 ** Function: util_ReadPreferences