@@ -72,7 +72,7 @@ PDCobj_create(pdcid_t cont_id, const char *obj_name, pdcid_t obj_prop_id)
7272 pdcid_t ret_value = 0 ;
7373 FUNC_ENTER (NULL );
7474#if 0
75- p = PDC_MALLOC (struct _pdc_obj_info );
75+ p = (struct _pdc_obj_info * ) PDC_malloc ( sizeof ( struct _pdc_obj_info ) );
7676 if (!p )
7777 PGOTO_ERROR (0 , "PDC object memory allocation failed" );
7878 p -> metadata = NULL ;
@@ -146,7 +146,7 @@ PDCobj_create(pdcid_t cont_id, const char *obj_name, pdcid_t obj_prop_id)
146146 if (obj_prop -> tags )
147147 p -> obj_pt -> tags = strdup (obj_prop -> tags );
148148
149- p -> obj_info_pub = PDC_MALLOC (struct pdc_obj_info );
149+ p -> obj_info_pub = (struct pdc_obj_info * ) PDC_malloc ( sizeof ( struct pdc_obj_info ) );
150150 if (!p -> obj_info_pub )
151151 PGOTO_ERROR (0 , "PDC pub object memory allocation failed" );
152152 p -> obj_info_pub -> name = strdup (obj_name );
@@ -239,7 +239,7 @@ PDC_obj_create(pdcid_t cont_id, const char *obj_name, pdcid_t obj_prop_id, _pdc_
239239
240240 FUNC_ENTER (NULL );
241241
242- p = PDC_MALLOC (struct _pdc_obj_info );
242+ p = (struct _pdc_obj_info * ) PDC_malloc ( sizeof ( struct _pdc_obj_info ) );
243243 if (!p )
244244 PGOTO_ERROR (0 , "PDC object memory allocation failed" );
245245 p -> metadata = NULL ;
@@ -329,7 +329,7 @@ PDC_obj_create(pdcid_t cont_id, const char *obj_name, pdcid_t obj_prop_id, _pdc_
329329 p -> local_transfer_request_end = NULL ;
330330 p -> local_transfer_request_size = 0 ;
331331 /* struct pdc_obj_info field */
332- p -> obj_info_pub = PDC_MALLOC (struct pdc_obj_info );
332+ p -> obj_info_pub = (struct pdc_obj_info * ) PDC_malloc ( sizeof ( struct pdc_obj_info ) );
333333 if (!p -> obj_info_pub )
334334 PGOTO_ERROR (0 , "PDC pub object memory allocation failed" );
335335 p -> obj_info_pub -> name = strdup (obj_name );
@@ -537,7 +537,7 @@ PDCobj_open_common(const char *obj_name, pdcid_t pdc, int is_col)
537537
538538 FUNC_ENTER (NULL );
539539
540- p = PDC_MALLOC (struct _pdc_obj_info );
540+ p = (struct _pdc_obj_info * ) PDC_malloc ( sizeof ( struct _pdc_obj_info ) );
541541 if (!p )
542542 PGOTO_ERROR (0 , "PDC object memory allocation failed" );
543543 p -> cont = PDC_CALLOC (1 , struct _pdc_cont_info );
@@ -558,7 +558,7 @@ PDCobj_open_common(const char *obj_name, pdcid_t pdc, int is_col)
558558 p -> obj_pt -> obj_prop_pub = PDC_CALLOC (1 , struct pdc_obj_prop );
559559 if (!p -> obj_pt -> obj_prop_pub )
560560 PGOTO_ERROR (0 , "PDC object property memory allocation failed" );
561- p -> obj_info_pub = PDC_MALLOC (struct pdc_obj_info );
561+ p -> obj_info_pub = (struct pdc_obj_info * ) PDC_malloc ( sizeof ( struct pdc_obj_info ) );
562562 if (!p -> obj_info_pub )
563563 PGOTO_ERROR (0 , "PDC pub object memory allocation failed" );
564564 p -> obj_info_pub -> obj_pt = PDC_CALLOC (1 , struct pdc_obj_prop );
0 commit comments