osi_assertx(bufferp != NULL, "null cm_buf_t");
- len = MIN(tiov[iov].iov_len - iov_offset, cm_data.buf_blockSize - buffer_offset);
+ len = min(tiov[iov].iov_len - iov_offset, cm_data.buf_blockSize - buffer_offset);
memcpy(bufferp + buffer_offset, tiov[iov].iov_base + iov_offset, len);
iov_offset += len;
buffer_offset += len;
osi_assertx(bufferp != NULL, "null cm_buf_t");
- len = MIN(tiov[iov].iov_len - iov_offset, data_length - buffer_offset);
+ len = min(tiov[iov].iov_len - iov_offset, data_length - buffer_offset);
memcpy(bufferp + buffer_offset, tiov[iov].iov_base + iov_offset, len);
iov_offset += len;
buffer_offset += len;
/* ptr should now be at the start of the answer RR sections */
- answerCount = MIN(answerCount, AFSMAXCELLHOSTS);
+ answerCount = min(answerCount, AFSMAXCELLHOSTS);
#ifdef DEBUG
fprintf(stderr, "processRep_AFSDB: answerCount=%d\n", answerCount);
#endif /* DEBUG */
afs_int64 int_begin;
afs_int64 int_end;
- int_begin = MAX(pos->offset, neg->offset);
- int_end = MIN(pos->offset+pos->length, neg->offset+neg->length);
+ int_begin = max(pos->offset, neg->offset);
+ int_end = min(pos->offset+pos->length, neg->offset+neg->length);
if (int_begin < int_end) {
if (int_begin == pos->offset) {