adminuid = ha_malloc(sizeof(char) * 11); snprintf(adminuid, 10, "%d", getpid()); adminuid[10] = '\0';
admin_uuid = ha_malloc(sizeof(char) * 11); snprintf(admin_uuid, 10, "%d", getpid()); admin_uuid[10] = '\0';
do_init(void){	/* docs say only do this once, but in their code they do it every time! */	xmlInitParser (); 	/* change the logging facility to the one used by heartbeat daemon */	ll_cluster_t *hb_cluster = ll_cluster_new("heartbeat");		int facility;	cl_log(LOG_INFO, "Switching to Heartbeat logger");	if (( facility =	      hb_cluster->llc_ops->get_logfacility(hb_cluster)) > 0) {		cl_log_set_facility(facility);	}	adminuid = ha_malloc(sizeof(char) * 11);	snprintf(adminuid, 10, "%d", getpid());	adminuid[10] = '\0';	crmd_channel =		init_client_ipc_comms(CRM_SYSTEM_CRMD,				      admin_msg_callback,				      NULL);	send_hello_message(crmd_channel,			   adminuid,			   crm_system_name,			   "0",			   "1");	return hb_cluster;}