diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-09 21:43:59 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-11 19:59:55 -0800 |
commit | 9ff1f97e46903f8f83363f07cf021989bfa6a9f0 (patch) | |
tree | 495ff1938fccb69c694df03177a6566b02448558 | |
parent | e8a16534a9406d5096d9c0ea515d979c7c15e084 (diff) |
Fix gcc -Wwrite-strings warnings in _IceError* functions
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r-- | src/ICElibint.h | 10 | ||||
-rw-r--r-- | 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; |