[PATCH:libICE 2/6] Fix gcc -Wwrite-strings warnings in _IceError* functions

Alan Coopersmith alan.coopersmith at oracle.com
Wed Nov 9 22:19:51 PST 2011


Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 src/ICElibint.h |   10 +++++-----
 src/error.c     |   10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/ICElibint.h b/src/ICElibint.h
index c112690..1254f6a 100644
--- a/src/ICElibint.h
+++ b/src/ICElibint.h
@@ -432,24 +432,24 @@ extern void _IceErrorNoVersion (
 extern void _IceErrorSetupFailed (
     IceConn		/* iceConn */,
     int			/* offendingMinor */,
-    char *		/* reason */
+    const char *	/* reason */
 );
 
 extern void _IceErrorAuthenticationRejected (
     IceConn		/* iceConn */,
     int			/* offendingMinor */,
-    char *		/* reason */
+    const char *	/* reason */
 );
 
 extern void _IceErrorAuthenticationFailed (
     IceConn		/* iceConn */,
     int			/* offendingMinor */,
-    char *		/* reason */
+    const char *	/* reason */
 );
 
 extern void _IceErrorProtocolDuplicate (
     IceConn		/* iceConn */,
-    char *		/* protocolName */
+    const char *	/* protocolName */
 );
 
 extern void _IceErrorMajorOpcodeDuplicate (
@@ -459,7 +459,7 @@ extern void _IceErrorMajorOpcodeDuplicate (
 
 extern void _IceErrorUnknownProtocol (
     IceConn		/* iceConn */,
-    char *		/* protocolName */
+    const char *	/* protocolName */
 );
 
 extern void _IceAddOpcodeMapping (
diff --git a/src/error.c b/src/error.c
index 044914a..3e5e5e9 100644
--- a/src/error.c
+++ b/src/error.c
@@ -165,7 +165,7 @@ void
 _IceErrorSetupFailed (
 	IceConn	iceConn,
 	int	offendingMinor,
-	char	*reason
+	const char	*reason
 )
 {
     char *pBuf, *pStart;
@@ -196,7 +196,7 @@ void
 _IceErrorAuthenticationRejected (
 	IceConn	iceConn,
 	int	offendingMinor,
-	char	*reason
+	const char	*reason
 )
 {
     char *pBuf, *pStart;
@@ -225,7 +225,7 @@ void
 _IceErrorAuthenticationFailed (
 	IceConn	iceConn,
 	int	offendingMinor,
-	char	*reason
+	const char	*reason
 )
 {
     char *pBuf, *pStart;
@@ -253,7 +253,7 @@ _IceErrorAuthenticationFailed (
 void
 _IceErrorProtocolDuplicate (
 	IceConn	iceConn,
-	char	*protocolName
+	const char	*protocolName
 )
 {
     char *pBuf, *pStart;
@@ -301,7 +301,7 @@ _IceErrorMajorOpcodeDuplicate (
 void
 _IceErrorUnknownProtocol (
 	IceConn	iceConn,
-	char	*protocolName
+	const char	*protocolName
 )
 {
     char *pBuf, *pStart;
-- 
1.7.3.2



More information about the xorg-devel mailing list