for(lpc = 0; lpc < g_slist_length(rsc_list); lpc++) { resource_t *rsc = g_slist_nth_data(rsc_list, lpc);
for(lpc = 0; lpc < g_list_length(rsc_list); lpc++) { resource_t *rsc = g_list_nth_data(rsc_list, lpc);
pe_find_resource(GSListPtr rsc_list, const char *id_rh){	int lpc = 0;	for(lpc = 0; lpc < g_slist_length(rsc_list); lpc++) {		resource_t *rsc = g_slist_nth_data(rsc_list, lpc);		if(rsc != NULL && safe_str_eq(rsc->id, id_rh)){			return rsc;		}	}	// error	return NULL;}