summaryrefslogtreecommitdiff
path: root/src/watch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/watch.c')
-rw-r--r--src/watch.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/watch.c b/src/watch.c
index 42fb715..abbc265 100644
--- a/src/watch.c
+++ b/src/watch.c
@@ -48,8 +48,7 @@ IceAddConnectionWatch (
_IceWatchProc *newWatchProc;
int i;
- if ((newWatchProc = (_IceWatchProc *) malloc (
- sizeof (_IceWatchProc))) == NULL)
+ if ((newWatchProc = malloc (sizeof (_IceWatchProc))) == NULL)
{
return (0);
}
@@ -74,7 +73,7 @@ IceAddConnectionWatch (
for (i = 0; i < _IceConnectionCount; i++)
{
- _IceWatchedConnection *newWatchedConn = (_IceWatchedConnection *)
+ _IceWatchedConnection *newWatchedConn =
malloc (sizeof (_IceWatchedConnection));
newWatchedConn->iceConn = _IceConnectionObjs[i];
@@ -140,7 +139,7 @@ _IceConnectionOpened (
while (watchProc)
{
- _IceWatchedConnection *newWatchedConn = (_IceWatchedConnection *)
+ _IceWatchedConnection *newWatchedConn =
malloc (sizeof (_IceWatchedConnection));
_IceWatchedConnection *watchedConn;