From: Joseph Sutton Date: Mon, 7 Aug 2023 01:20:22 +0000 (+1200) Subject: tldap: Use portable integer constant X-Git-Tag: tevent-0.16.0~1152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09a13ca46e322497e63dc8353d4b0a86fbec1e39;p=thirdparty%2Fsamba.git tldap: Use portable integer constant Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c index e008b04e5e6..1fdd286b55a 100644 --- a/source3/lib/tldap.c +++ b/source3/lib/tldap.c @@ -159,7 +159,7 @@ static int tldap_next_msgid(struct tldap_context *ld) int result; result = ld->msgid++; - if (ld->msgid == 2147483647) { + if (ld->msgid == INT_MAX) { ld->msgid = 1; } return result;