summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-11-08 15:47:43 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-11-08 15:59:28 -0800
commitf391fa1f55436ec2e4f7de4c4734fcd89cdbe250 (patch)
tree306687ec67d1c837418887fb32cc020f68cd82dc /config.c
parent5d5a7f80d905d58530c8473bc7ec0b0b3b165658 (diff)
Stop casting results of malloc calls
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'config.c')
-rw-r--r--config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/config.c b/config.c
index 8696ac5..120e35a 100644
--- a/config.c
+++ b/config.c
@@ -49,9 +49,9 @@ FILE *f)
else
*plen = BUFSIZ;
if (*pbuf)
- *pbuf = (char *) realloc (*pbuf, *plen + 1);
+ *pbuf = realloc (*pbuf, *plen + 1);
else
- *pbuf = (char *) malloc (*plen + 1);
+ *pbuf = malloc (*plen + 1);
if (! *pbuf) {
fprintf (stderr, "Memory allocation failure reading config file\n");
return 0;
@@ -159,7 +159,7 @@ GetConfig (
if (*managed)
{
n = strlen (p) + 2;
- *startCommand = (char *) malloc (n);
+ *startCommand = malloc (n);
if (! *startCommand) {
fprintf (stderr,
"Memory allocation failed for service \"%s\"\n",