diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-11-08 15:47:43 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-11-08 15:59:28 -0800 |
commit | f391fa1f55436ec2e4f7de4c4734fcd89cdbe250 (patch) | |
tree | 306687ec67d1c837418887fb32cc020f68cd82dc /config.c | |
parent | 5d5a7f80d905d58530c8473bc7ec0b0b3b165658 (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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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", |