git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
769aa90
)
tldap: Use portable integer constant
author
Joseph Sutton
<josephsutton@catalyst.net.nz>
Mon, 7 Aug 2023 01:20:22 +0000
(13:20 +1200)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/source3/lib/tldap.c
b/source3/lib/tldap.c
index e008b04e5e6b2e527ae9529387fd8bd391c16aa6..1fdd286b55a69e08d483f1fe500e412f9cbdcecb 100644
(file)
--- 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;