CRM_DEBUG("Initiating transition...");
CRM_NOTE("Initiating transition...");
main(int argc, char **argv){	int argerr = 0;	int flag;  	cl_log_set_entity("ttest");	cl_log_enable_stderr(TRUE);	cl_log_set_facility(LOG_USER);	while (1) {		int option_index = 0;		static struct option long_options[] = {			// Top-level Options			{"daemon", 0, 0, 0},      			{0, 0, 0, 0}		};    		flag = getopt_long(argc, argv, OPTARGS,				   long_options, &option_index);		if (flag == -1)			break;    		switch(flag) {			case 0:				printf("option %s", long_options[option_index].name);				if (optarg)					printf(" with arg %s", optarg);				printf("\n");    				break;      				/* a sample test for multiple instance				   if (digit_optind != 0 && digit_optind != this_option_optind)				   printf ("digits occur in two different argv-elements.\n");				   digit_optind = this_option_optind;				   printf ("option %c\n", c);				*/      			case 'V':				printf("option %d", flag);				break;			default:				printf("?? getopt returned character code 0%o ??\n", flag);				++argerr;				break;		}	}  	if (optind < argc) {		printf("non-option ARGV-elements: ");		while (optind < argc)			printf("%s ", argv[optind++]);		printf("\n");	}  	if (optind > argc) {		++argerr;	}  	if (argerr) {		cl_log(LOG_ERR, "%d errors in option parsing", argerr);	}  	cl_log(LOG_INFO, "=#=#=#=#= Getting XML =#=#=#=#=");    	mtrace();	CRM_DEBUG("Initializing graph...");	initialize_graph();		xmlNodePtr xml_graph = file2xml(stdin);	CRM_DEBUG("Unpacking graph...");	unpack_graph(xml_graph);	CRM_DEBUG("Initiating transition...");	if(initiate_transition() == FALSE) {		// nothing to be done.. means we're done.		cl_log(LOG_INFO, "No actions to be taken..."		       " transition compelte.");	}	initialize_graph();	free_xml(xml_graph);	muntrace();	CRM_DEBUG("Transition complete...");	return 0;}