Commit c0d2498d authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cast result of xmalloc

parent 0e11941f
......@@ -161,7 +161,7 @@ void grid_free(grid_t *gridptr)
static grid_t *
gridNewEntry(cdiResH resH)
{
grid_t *gridptr = xmalloc(sizeof (grid_t));
grid_t *gridptr = (grid_t*) xmalloc(sizeof(grid_t));
grid_init(gridptr);
if (resH == CDI_UNDEFID)
gridptr->self = reshPut(gridptr, &gridOps);
......
......@@ -173,7 +173,7 @@ static
institute_t *instituteNewEntry(cdiResH resH, int center, int subcenter,
const char *name, const char *longname)
{
institute_t *instituteptr = xmalloc(sizeof (institute_t));
institute_t *instituteptr = (institute_t*) xmalloc(sizeof(institute_t));
instituteDefaultValue(instituteptr);
if (resH == CDI_UNDEFID)
instituteptr->self = reshPut(instituteptr, &instituteOps);
......
......@@ -255,7 +255,7 @@ int modelCompareP ( void * modelptr1, void * modelptr2 )
void modelDestroyP ( void * modelptr )
{
model_t *mp = modelptr;
model_t *mp = (model_t*) modelptr;
if (mp->name)
free(mp->name);
free(mp);
......@@ -264,7 +264,7 @@ void modelDestroyP ( void * modelptr )
void modelPrintP ( void * modelptr, FILE * fp )
{
model_t * mp = ( model_t * ) modelptr;
model_t *mp = (model_t*) modelptr;
if ( !mp ) return;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment