summaryrefslogtreecommitdiff
path: root/src/sm_misc.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-19 10:33:15 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-12-09 17:37:09 -0800
commite77dd2e4bc8227ebdab70b4233cb33ed690fa264 (patch)
treec40965b2ffd7dc02afac66aca8ce05b6086d8446 /src/sm_misc.c
parent46f3ef4460aa2c1c2cba22897694a1cea572d506 (diff)
Remove a bunch of unnecessary casts with malloc & free calls
With modern compilers and headers, they cause more problems than they solve and just hide real issues. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org> Reviewed-by: James Cloos <cloos@jhcloos.com>
Diffstat (limited to 'src/sm_misc.c')
-rw-r--r--src/sm_misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sm_misc.c b/src/sm_misc.c
index c081611..83d1259 100644
--- a/src/sm_misc.c
+++ b/src/sm_misc.c
@@ -54,11 +54,11 @@ SmFreeProperty(SmProp *prop)
{
for (i = 0; i < prop->num_vals; i++)
if (prop->vals[i].value)
- free ((char *) prop->vals[i].value);
- free ((char *) prop->vals);
+ free (prop->vals[i].value);
+ free (prop->vals);
}
- free ((char *) prop);
+ free (prop);
}
}
@@ -77,7 +77,7 @@ SmFreeReasons(int count, char **reasonMsgs)
for (i = 0; i < count; i++)
free (reasonMsgs[i]);
- free ((char *) reasonMsgs);
+ free (reasonMsgs);
}
}