summaryrefslogtreecommitdiff
path: root/src/sm_manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sm_manager.c')
-rw-r--r--src/sm_manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sm_manager.c b/src/sm_manager.c
index 9e0d187..d28c0c5 100644
--- a/src/sm_manager.c
+++ b/src/sm_manager.c
@@ -68,7 +68,7 @@ _SmsProtocolSetupProc (IceConn iceConn,
* Allocate new SmsConn.
*/
- if ((smsConn = (SmsConn) malloc (sizeof (struct _SmsConn))) == NULL)
+ if ((smsConn = malloc (sizeof (struct _SmsConn))) == NULL)
{
const char *str = "Memory allocation failed";
@@ -335,5 +335,5 @@ SmsCleanUp(SmsConn smsConn)
if (smsConn->client_id)
free (smsConn->client_id);
- free ((char *) smsConn);
+ free (smsConn);
}