]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Remove min() and max() macros from netdissect-stdinc.h
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 20 Jan 2018 15:43:48 +0000 (16:43 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 20 Jan 2018 15:47:38 +0000 (16:47 +0100)
They are already defined in netdissect.h.

netdissect-stdinc.h

index c6e1c2c8df94e153a3524ee409da13b95e4d08ab..c7c53db400286d48fee6544fe77f5d3594c0742c 100644 (file)
@@ -477,13 +477,6 @@ struct in6_addr {
  */
 #include "funcattrs.h"
 
-#ifndef min
-#define min(a,b) ((a)>(b)?(b):(a))
-#endif
-#ifndef max
-#define max(a,b) ((b)>(a)?(b):(a))
-#endif
-
 #ifdef __ATTRIBUTE___FALLTHROUGH_OK
 #  define ND_FALL_THROUGH __attribute__ ((fallthrough))
 #else