Revision 1445

View differences:

trunk/code/projects/libdragonfly/bom.c
238 238
 **/
239 239
int bom_get_max10(int *dist) {
240 240
    int i, max;
241
    long long mean, sum;
241
    long long mean = 0, sum = 0;
242 242

  
243 243
    max = bom_get_max();
244 244
    if (max < 0)
trunk/code/projects/libwireless/lib/wl_token_ring.c
738 738
 **/
739 739
static void wl_token_bom_on_receive(int source)
740 740
{
741
	int max, dist;
741
	int max;
742 742

  
743 743
	WL_DEBUG_PRINT("Robot ");
744 744
	WL_DEBUG_PRINT_INT(source);
......
752 752

  
753 753
	WL_DEBUG_PRINT("Max: ");
754 754
	WL_DEBUG_PRINT_INT(max);
755
	WL_DEBUG_PRINT("\tVar: ");
756
	WL_DEBUG_PRINT_INT(dist);
757 755
	WL_DEBUG_PRINT("\n\n");
758 756
}
759 757

  

Also available in: Unified diff