summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-18 10:18:21 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-18 10:18:21 -0700
commit58f3c3b8d518786764f45ac2be1f1f0850129125 (patch)
treedb01e99d81fe6120d5a9311c2d0fb768b8b9ac70 /src/session.c
parent2a637337713c5c92c44249b88e31696ce9efdf9b (diff)
Stop casting pointers to (char *) when freeing them
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/session.c b/src/session.c
index 4dd91c3..7eaef4d 100644
--- a/src/session.c
+++ b/src/session.c
@@ -501,9 +501,9 @@ give_up:
free (entry->wm_command[i]);
}
if (entry->wm_command)
- free ((char *) entry->wm_command);
+ free (entry->wm_command);
- free ((char *) entry);
+ free (entry);
*pentry = NULL;
return 0;
@@ -890,7 +890,7 @@ SaveYourselfPhase2CB (SmcConn smcConn, SmPointer clientData)
props[1] = &prop2;
SmcSetProperties (smcConn, 2, props);
- free ((char *) prop1.vals);
+ free (prop1.vals);
bad:
SmcSaveYourselfDone (smcConn, success);