@@ -177,7 +177,7 @@ attrd_cpg_dispatch(cpg_handle_t handle, const struct cpg_name *group_name,
177177 * \param[in] unused Unused
178178 */
179179static void
180- attrd_cpg_destroy (gpointer unused )
180+ attrd_cpg_destroy (void * unused )
181181{
182182 if (attrd_shutting_down ()) {
183183 pcmk__info ("Disconnected from Corosync process group" );
@@ -433,7 +433,7 @@ attrd_peer_update_one(const pcmk__node_status_t *peer, xmlNode *xml,
433433 pcmk__xe_remove_attr (xml , PCMK__XA_ATTR_HOST_ID );
434434 g_hash_table_iter_init (& vIter , a -> values );
435435
436- while (g_hash_table_iter_next (& vIter , (gpointer * ) & host , NULL )) {
436+ while (g_hash_table_iter_next (& vIter , (void * * ) & host , NULL )) {
437437 update_attr_on_host (a , peer , xml , attr , value , host , filter );
438438 }
439439
@@ -460,10 +460,10 @@ broadcast_unseen_local_values(void)
460460 xmlNode * sync = NULL ;
461461
462462 g_hash_table_iter_init (& aIter , attributes );
463- while (g_hash_table_iter_next (& aIter , NULL , (gpointer * ) & a )) {
463+ while (g_hash_table_iter_next (& aIter , NULL , (void * * ) & a )) {
464464
465465 g_hash_table_iter_init (& vIter , a -> values );
466- while (g_hash_table_iter_next (& vIter , NULL , (gpointer * ) & v )) {
466+ while (g_hash_table_iter_next (& vIter , NULL , (void * * ) & v )) {
467467
468468 if (!pcmk__is_set (v -> flags , attrd_value_from_peer )
469469 && pcmk__str_eq (v -> nodename , attrd_cluster -> priv -> node_name ,
@@ -527,7 +527,7 @@ attrd_peer_clear_failure(pcmk__request_t *request)
527527 const char * host = pcmk__xe_get (xml , PCMK__XA_ATTR_HOST );
528528 const char * op = pcmk__xe_get (xml , PCMK__XA_ATTR_CLEAR_OPERATION );
529529 const char * interval_spec = pcmk__xe_get (xml , PCMK__XA_ATTR_CLEAR_INTERVAL );
530- guint interval_ms = 0U ;
530+ unsigned int interval_ms = 0 ;
531531 char * attr = NULL ;
532532 GHashTableIter iter ;
533533 regex_t regex ;
@@ -550,7 +550,7 @@ attrd_peer_clear_failure(pcmk__request_t *request)
550550 pcmk__xe_remove_attr (xml , PCMK__XA_ATTR_VALUE );
551551
552552 g_hash_table_iter_init (& iter , attributes );
553- while (g_hash_table_iter_next (& iter , (gpointer * ) & attr , NULL )) {
553+ while (g_hash_table_iter_next (& iter , (void * * ) & attr , NULL )) {
554554 if (regexec (& regex , attr , 0 , NULL , 0 ) == 0 ) {
555555 pcmk__trace ("Matched %s when clearing %s" , attr ,
556556 pcmk__s (rsc , "all resources" ));
@@ -616,7 +616,7 @@ attrd_erase_removed_peer_attributes(void)
616616 }
617617
618618 g_hash_table_iter_init (& iter , removed_peers );
619- while (g_hash_table_iter_next (& iter , (gpointer * ) & host , NULL )) {
619+ while (g_hash_table_iter_next (& iter , (void * * ) & host , NULL )) {
620620 attrd_cib_erase_transient_attrs (host );
621621 g_hash_table_iter_remove (& iter );
622622 }
@@ -642,7 +642,7 @@ attrd_peer_remove(const char *host, bool uncache, const char *source)
642642 host , source , (uncache ? "and" : "without" ));
643643
644644 g_hash_table_iter_init (& aIter , attributes );
645- while (g_hash_table_iter_next (& aIter , NULL , (gpointer * ) & a )) {
645+ while (g_hash_table_iter_next (& aIter , NULL , (void * * ) & a )) {
646646 if (g_hash_table_remove (a -> values , host )) {
647647 pcmk__debug ("Removed %s[%s] for peer %s" , a -> id , host , source );
648648 }
@@ -702,9 +702,9 @@ attrd_peer_sync(pcmk__node_status_t *peer)
702702 pcmk__xe_set (sync , PCMK_XA_TASK , PCMK__ATTRD_CMD_SYNC_RESPONSE );
703703
704704 g_hash_table_iter_init (& aIter , attributes );
705- while (g_hash_table_iter_next (& aIter , NULL , (gpointer * ) & a )) {
705+ while (g_hash_table_iter_next (& aIter , NULL , (void * * ) & a )) {
706706 g_hash_table_iter_init (& vIter , a -> values );
707- while (g_hash_table_iter_next (& vIter , NULL , (gpointer * ) & v )) {
707+ while (g_hash_table_iter_next (& vIter , NULL , (void * * ) & v )) {
708708 pcmk__debug ("Syncing %s[%s]='%s' to %s" , a -> id , v -> nodename ,
709709 readable_value (v ), readable_peer (peer ));
710710 attrd_add_value_xml (sync , a , v , false);
0 commit comments