Don't cast calls to malloc().

This commit is contained in:
Anthony J. Bentley
2014-09-26 00:39:29 -06:00
parent 0d07caba60
commit 3e4350afa4
7 changed files with 18 additions and 40 deletions

View File

@@ -173,9 +173,7 @@ opt_Push(void)
{
struct sOptionStackEntry *pOpt;
if ((pOpt =
(struct sOptionStackEntry *)
malloc(sizeof(struct sOptionStackEntry))) != NULL) {
if ((pOpt = malloc(sizeof(struct sOptionStackEntry))) != NULL) {
pOpt->Options = CurrentOptions;
pOpt->pNext = pOptionStack;
pOptionStack = pOpt;