From 72093ce62f1e09db86452720fe8280ad66824cde Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 19 Oct 2004 12:06:01 +0000 Subject: r3064: - use UINT8_MAX and UINT16_MAX instead of hex values for idr_get_new() limits - change idr_get_new() to use > instead of >= in the limit check (This used to be commit 834b09929bcb8aabdd151b7c2306001497cabdb4) --- source4/include/includes.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4/include') diff --git a/source4/include/includes.h b/source4/include/includes.h index 85e4299efd..0290f652ab 100644 --- a/source4/include/includes.h +++ b/source4/include/includes.h @@ -466,6 +466,14 @@ typedef int socklen_t; #define uint64 uint64_t #endif +#ifndef UINT8_MAX +#define UINT8_MAX 255 +#endif + +#ifndef UINT16_MAX +#define UINT16_MAX 65535 +#endif + /* * Types for devices, inodes and offsets. */ -- cgit