[Pcsclite-cvs-commit] r3363 - in /trunk/HandlerTest/Host: debug.c debug.h

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Mon Mar 23 10:08:48 UTC 2009


Author: rousseau
Date: Mon Mar 23 10:08:48 2009
New Revision: 3363

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3363
Log:
handler_test.c:219: warning: passing argument 2 of ‘log_msg’ discards qualifiers from pointer target type

Modified:
    trunk/HandlerTest/Host/debug.c
    trunk/HandlerTest/Host/debug.h

Modified: trunk/HandlerTest/Host/debug.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/HandlerTest/Host/debug.c?rev=3363&op=diff
==============================================================================
--- trunk/HandlerTest/Host/debug.c (original)
+++ trunk/HandlerTest/Host/debug.c Mon Mar 23 10:08:48 2009
@@ -14,7 +14,7 @@
 #include <stdio.h>
 #include <string.h>
 
-void log_msg(const int priority, char *fmt, ...)
+void log_msg(const int priority, const char *fmt, ...)
 {
 	va_list argptr;
 

Modified: trunk/HandlerTest/Host/debug.h
URL: http://svn.debian.org/wsvn/pcsclite/trunk/HandlerTest/Host/debug.h?rev=3363&op=diff
==============================================================================
--- trunk/HandlerTest/Host/debug.h (original)
+++ trunk/HandlerTest/Host/debug.h Mon Mar 23 10:08:48 2009
@@ -35,7 +35,7 @@
 #define DEBUG2(fmt, data) log_msg(0, "%s:%d:%s " fmt, __FILE__, __LINE__, __FUNCTION__, data)
 #define DEBUG3(fmt, data1, data2) log_msg(0, "%s:%d:%s " fmt, __FILE__, __LINE__, __FUNCTION__, data1, data2)
 
-void log_msg(const int priority, char *fmt, ...);
+void log_msg(const int priority, const char *fmt, ...);
 void log_xxd(const int priority, const char *msg, const unsigned char *buffer,
 	const int size);
 




More information about the Pcsclite-cvs-commit mailing list