projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b0aeec
)
Revert "Work around a GCC bug that causes inet_checksum() to give wrong results."
author
Maciej S. Szmigiero
<mail@maciej.szmigiero.name>
Tue, 16 Apr 2019 12:19:48 +0000
(14:19 +0200)
committer
Maciej S. Szmigiero
<mail@maciej.szmigiero.name>
Tue, 16 Apr 2019 12:19:48 +0000
(14:19 +0200)
This reverts commit
7c73cb3ace6659df58ec2382b8d47bb521dad886
.
src/route.c
patch
|
blob
|
history
diff --git
a/src/route.c
b/src/route.c
index
fc08f5f
..
2e8d94a
100644
(file)
--- a/
src/route.c
+++ b/
src/route.c
@@
-59,7
+59,6
@@
static const size_t opt_size = sizeof(struct nd_opt_hdr);
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#endif
-volatile int dummy;
static timeout_t age_subnets_timeout;
/* RFC 1071 */
@@
-81,11
+80,6
@@
static uint16_t inet_checksum(void *data, int len, uint16_t prevsum) {
checksum = (checksum & 0xFFFF) + (checksum >> 16);
}
- // Work around a compiler optimization bug.
- if(checksum) {
- dummy = 1;
- }
-
return ~checksum;
}