Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
c0d2498d
Commit
c0d2498d
authored
May 28, 2014
by
Uwe Schulzweida
Browse files
cast result of xmalloc
parent
0e11941f
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/grid.c
View file @
c0d2498d
...
...
@@ -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
);
...
...
src/institution.c
View file @
c0d2498d
...
...
@@ -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
);
...
...
src/model.c
View file @
c0d2498d
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment