Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 683160 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/route.c (-1 / +6 lines)
Lines 59-64 static const size_t opt_size = sizeof(struct nd_opt_hdr); Link Here
59
#define MAX(a, b) ((a) > (b) ? (a) : (b))
59
#define MAX(a, b) ((a) > (b) ? (a) : (b))
60
#endif
60
#endif
61
61
62
volatile int dummy;
62
static timeout_t age_subnets_timeout;
63
static timeout_t age_subnets_timeout;
63
64
64
/* RFC 1071 */
65
/* RFC 1071 */
Lines 80-85 static uint16_t inet_checksum(void *data, int len, uint16_t prevsum) { Link Here
80
		checksum = (checksum & 0xFFFF) + (checksum >> 16);
81
		checksum = (checksum & 0xFFFF) + (checksum >> 16);
81
	}
82
	}
82
83
84
	// Work around a compiler optimization bug.
85
	if(checksum) {
86
		dummy = 1;
87
	}
88
83
	return ~checksum;
89
	return ~checksum;
84
}
90
}
85
91
86
- 

Return to bug 683160