1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

tldap: Use portable integer constant

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-08-07 13:20:22 +12:00 committed by Andrew Bartlett
parent 769aa90199
commit 09a13ca46e

View 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;