|
|
6bbd11 |
autofs-5.0.8 - fix max() declaration
|
|
|
6bbd11 |
|
|
|
6bbd11 |
From: Ian Kent <raven@themaw.net>
|
|
|
6bbd11 |
|
|
|
6bbd11 |
Use a name other than the already defined max().
|
|
|
6bbd11 |
---
|
|
|
6bbd11 |
CHANGELOG | 1 +
|
|
|
6bbd11 |
modules/replicated.c | 6 +++---
|
|
|
6bbd11 |
2 files changed, 4 insertions(+), 3 deletions(-)
|
|
|
6bbd11 |
|
|
|
6bbd11 |
--- autofs-5.0.7.orig/CHANGELOG
|
|
|
6bbd11 |
+++ autofs-5.0.7/CHANGELOG
|
|
|
6bbd11 |
@@ -75,6 +75,7 @@
|
|
|
6bbd11 |
- check for non existent negative entries in lookup_ghost().
|
|
|
6bbd11 |
- fix options compare.
|
|
|
6bbd11 |
- fix fix options compare.
|
|
|
6bbd11 |
+- fix max() declaration.
|
|
|
6bbd11 |
|
|
|
6bbd11 |
25/07/2012 autofs-5.0.7
|
|
|
6bbd11 |
=======================
|
|
|
6bbd11 |
--- autofs-5.0.7.orig/modules/replicated.c
|
|
|
6bbd11 |
+++ autofs-5.0.7/modules/replicated.c
|
|
|
6bbd11 |
@@ -73,8 +73,8 @@ static int volatile ifc_last_len = 0;
|
|
|
6bbd11 |
/* Get numeric value of the n bits starting at position p */
|
|
|
6bbd11 |
#define getbits(x, p, n) ((x >> (p + 1 - n)) & ~(~0 << n))
|
|
|
6bbd11 |
|
|
|
6bbd11 |
-#define max(x, y) (x >= y ? x : y)
|
|
|
6bbd11 |
-#define mmax(x, y, z) (max(x, y) == x ? max(x, z) : max(y, z))
|
|
|
6bbd11 |
+#define mymax(x, y) (x >= y ? x : y)
|
|
|
6bbd11 |
+#define mmax(x, y, z) (mymax(x, y) == x ? mymax(x, z) : mymax(y, z))
|
|
|
6bbd11 |
|
|
|
6bbd11 |
unsigned int ipv6_mask_cmp(uint32_t *host, uint32_t *iface, uint32_t *mask)
|
|
|
6bbd11 |
{
|
|
|
6bbd11 |
@@ -961,7 +961,7 @@ int prune_host_list(unsigned logopt, str
|
|
|
6bbd11 |
|
|
|
6bbd11 |
max_tcp_count = mmax(v4_tcp_count, v3_tcp_count, v2_tcp_count);
|
|
|
6bbd11 |
max_udp_count = mmax(v4_udp_count, v3_udp_count, v2_udp_count);
|
|
|
6bbd11 |
- max_count = max(max_tcp_count, max_udp_count);
|
|
|
6bbd11 |
+ max_count = mymax(max_tcp_count, max_udp_count);
|
|
|
6bbd11 |
|
|
|
6bbd11 |
if (max_count == v4_tcp_count) {
|
|
|
6bbd11 |
selected_version = NFS4_TCP_SUPPORTED;
|