Use the max macro provided by roken. Fixes builds on
solaris.
Change-Id: Id429fe816284a1017082054e02a830a2a952c26b
Reviewed-on: http://gerrit.openafs.org/8004
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
/* 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;