summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-09 22:06:36 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-11 20:00:11 -0800
commitbec4e9c9089fa4cc5a50fc513a3544cf6fd59bf1 (patch)
treeaaae3b48df956809b896a6289ba7fa716db53eed
parentffa659dd6dd1fb8847bfdcc5e1e2be353b6395b6 (diff)
Fix gcc -Wwrite-strings warnings in process.c
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--src/process.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/process.c b/src/process.c
index 2bb8d55..b566010 100644
--- a/src/process.c
+++ b/src/process.c
@@ -650,8 +650,8 @@ ProcessError (
_IceConnectionError *errorReply =
&(((_IceReply *) (replyWait->reply))->connection_error);
char *errorStr = NULL;
- const char *tempstr;
- char *prefix, *temp;
+ const char *tempstr, *prefix;
+ char *temp;
invokeHandler = 0;
errorReturned = True;
@@ -716,7 +716,8 @@ ProcessError (
_IceProtocolError *errorReply =
&(((_IceReply *) (replyWait->reply))->protocol_error);
char *errorStr = "";
- char *prefix, *temp;
+ const char *prefix;
+ char *temp;
invokeHandler = 0;
errorReturned = True;
@@ -725,16 +726,15 @@ ProcessError (
{
case IceNoVersion:
- temp =
- "None of the protocol versions specified are supported";
- errorStr = strdup(temp);
+ errorStr = strdup(
+ "None of the protocol versions specified are supported");
break;
case IceNoAuth:
- temp =
- "None of the authentication protocols specified are supported";
- errorStr = strdup(temp);
+ errorStr = strdup(
+ "None of the authentication protocols specified are supported");
+
break;
case IceSetupFailed:
@@ -1246,7 +1246,8 @@ ProcessAuthRequired (
}
else if (status == IcePoAuthRejected || status == IcePoAuthFailed)
{
- char *prefix, *returnErrorString;
+ const char *prefix;
+ char *returnErrorString;
if (status == IcePoAuthRejected)
{
@@ -1672,7 +1673,8 @@ ProcessAuthNextPhase (
}
else if (status == IcePoAuthRejected || status == IcePoAuthFailed)
{
- char *prefix = NULL, *returnErrorString;
+ const char *prefix = NULL;
+ char *returnErrorString;
if (status == IcePoAuthRejected)
{