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:
parent
769aa90199
commit
09a13ca46e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user