} while (0)
#endif
-#ifndef max
-#define max(a, b) ((a) > (b) ? (a) : (b))
-#endif
+static inline size_t max(size_t a, size_t b) {
+ return a > b ? a : b;
+}
#ifdef UTCP_DEBUG
#include <stdarg.h>
* that are shifted to before the start of the receive buffer.
*
* There are three cases:
- * - the SACK entry is ahead of ^, in that case just change the offset.
+ * - the SACK entry is after ^, in that case just change the offset.
* - the SACK entry starts before and ends after ^, so we have to
* change both its offset and size.
* - the SACK entry is completely before ^, in that case delete it.