From bf1131fd33e71a18a0aef1cb21038144286fd28a Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Thu, 16 Aug 2012 18:04:22 -0400 Subject: [PATCH] vos: use the roken max macro Use the max macro provided by roken. Fixes builds on solaris. Change-Id: Id429fe816284a1017082054e02a830a2a952c26b Reviewed-on: http://gerrit.openafs.org/8004 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/volser/vsprocs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/volser/vsprocs.c b/src/volser/vsprocs.c index c79d1e961..9f4bfdf09 100644 --- a/src/volser/vsprocs.c +++ b/src/volser/vsprocs.c @@ -762,10 +762,10 @@ UV_CreateVolume3(afs_uint32 aserver, afs_int32 apart, char *aname, /* If caller specified RW id, but not RO/BK ids, have them be RW+1 and RW+2 */ lastid = *anewid; if (aroid && *aroid != 0) { - lastid = MAX(lastid, *aroid); + lastid = max(lastid, *aroid); } if (abkid && *abkid != 0) { - lastid = MAX(lastid, *abkid); + lastid = max(lastid, *abkid); } if (aroid && *aroid == 0) { *aroid = ++lastid; -- 2.39.5