tldap: Use portable integer constant
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 7 Aug 2023 01:20:22 +0000 (13:20 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 8 Aug 2023 04:39:38 +0000 (04:39 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/lib/tldap.c

index e008b04e5e6b2e527ae9529387fd8bd391c16aa6..1fdd286b55a69e08d483f1fe500e412f9cbdcecb 100644 (file)
@@ -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;