upload tizen2.0 source
[framework/uifw/xorg/lib/libsm.git] / src / sm_process.c
old mode 100755 (executable)
new mode 100644 (file)
index c7c7abe..651ddef
@@ -152,7 +152,7 @@ _SmcProcessMessage(IceConn iceConn, IcePointer clientData, int opcode,
        {
            smRegisterClientReplyMsg    *pMsg;
            char                        *pData, *pStart;
-           _SmcRegisterClientReply     *reply = 
+           _SmcRegisterClientReply     *reply =
                (_SmcRegisterClientReply *) (replyWait->reply);
 
 #if 0 /* No-op */
@@ -267,7 +267,7 @@ _SmcProcessMessage(IceConn iceConn, IcePointer clientData, int opcode,
            (*smcConn->phase2_wait->phase2_proc) (smcConn,
                smcConn->phase2_wait->client_data);
 
-           free ((char *) smcConn->phase2_wait);
+           free (smcConn->phase2_wait);
            smcConn->phase2_wait  = NULL;
        }
        break;
@@ -290,7 +290,7 @@ _SmcProcessMessage(IceConn iceConn, IcePointer clientData, int opcode,
            (*smcConn->interact_waits->interact_proc) (smcConn,
                smcConn->interact_waits->client_data);
 
-           free ((char *) smcConn->interact_waits);
+           free (smcConn->interact_waits);
            smcConn->interact_waits = next;
        }
        break;
@@ -393,7 +393,7 @@ _SmcProcessMessage(IceConn iceConn, IcePointer clientData, int opcode,
            (*smcConn->prop_reply_waits->prop_reply_proc) (smcConn,
                smcConn->prop_reply_waits->client_data, numProps, props);
 
-           free ((char *) smcConn->prop_reply_waits);
+           free (smcConn->prop_reply_waits);
            smcConn->prop_reply_waits = next;
 
            IceDisposeCompleteMessage (iceConn, pStart);
@@ -752,7 +752,7 @@ _SmsProcessMessage(IceConn iceConn, IcePointer clientData, int opcode,
 
        pData = pStart + 8;
 
-       reasonMsgs = (char **) malloc (count * sizeof (char *));
+       reasonMsgs = malloc (count * sizeof (char *));
        for (i = 0; i < count; i++)
            EXTRACT_ARRAY8_AS_STRING (pData, swap, reasonMsgs[i]);
 
@@ -770,7 +770,7 @@ _SmsProcessMessage(IceConn iceConn, IcePointer clientData, int opcode,
        char                    *pData, *pStart;
        SmProp                  **props = NULL;
        int                     numProps;
-       
+
 #if 0 /* No-op */
        CHECK_AT_LEAST_SIZE (iceConn, _SmsOpcode, opcode,
            length, SIZEOF (smSetPropertiesMsg), IceFatalToProtocol);
@@ -839,7 +839,7 @@ _SmsProcessMessage(IceConn iceConn, IcePointer clientData, int opcode,
 
        pData = pStart + 8;
 
-       propNames = (char **) malloc (count * sizeof (char *));
+       propNames = malloc (count * sizeof (char *));
        for (i = 0; i < count; i++)
            EXTRACT_ARRAY8_AS_STRING (pData, swap, propNames[i]);