Project

General

Profile

gdp-reader.patch

Correct patch for gdp-reader - Nitesh Mor, 06/22/2017 01:28 PM

Download (858 Bytes)

View differences:

apps/gdp-reader.c
281 281
	EP_STAT estat;
282 282
	void (*cbfunc)(gdp_event_t *) = NULL;
283 283
	EP_TIME_SPEC ts;
284
	int32_t i;
284 285

  
285 286
	if (use_callbacks)
286 287
		cbfunc = multiread_cb;
......
336 337
	// now start reading the events that will be generated
337 338
	if (!use_callbacks)
338 339
	{
339
		for (;;)
340
		for (i=0;i<numrecs-1;i++)
340 341
		{
341 342
			// get the next incoming event
342 343
			gdp_event_t *gev = gdp_event_next(NULL, 0);
......
700 701
			ep_app_message(close_stat, "cannot close GCL");
701 702
	}
702 703

  
704
	printf("sleeping for 100 seconds\n");
705
	int i;
706
	for (i=0;i<100;i++)
707
	{
708
		sleep(1);
709
	}
710
	printf("waking up\n");
711

  
703 712
	if (ep_dbg_test(Dbg, 10))
704 713
	{
705 714
		// cheat here and use internal interface