summaryrefslogtreecommitdiff
path: root/lib/checksum.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-09-21 18:20:49 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-09-23 12:12:17 -0400
commit6b143a68d3a44be42f2370b9d91409eceb14cebd (patch)
tree312fc83c79fec8f86ddfd909aedc09678eda49f9 /lib/checksum.c
parent518acd6fd802dbb5ab30db7d12b9995f582b824f (diff)
lib: force local MIN/MAX macros
Linux/glibc sys/param.h has definitions of MIN/MAX that result in multiple evaluations of its parameters. Force local definitions. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/checksum.c')
-rw-r--r--lib/checksum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/checksum.c b/lib/checksum.c
index 116aaafc97..3d6cd45791 100644
--- a/lib/checksum.c
+++ b/lib/checksum.c
@@ -47,7 +47,7 @@ in_cksum(void *parg, int nbytes)
}
/* Fletcher Checksum -- Refer to RFC1008. */
-#define MODX 4102 /* 5802 should be fine */
+#define MODX 4102U /* 5802 should be fine */
/* To be consistent, offset is 0-based index, rather than the 1-based
index required in the specification ISO 8473, Annex C.1 */