summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2022-05-15 13:15:31 +0200
committerJeremy Allison <jra@samba.org>2022-05-20 19:02:37 +0000
commit8ea8526d131107f6d2e71bc56753f89e7125c778 (patch)
tree1e51577146ea16e8232918ba19c6518b196d1f45 /source3
parent78ebd8af885841a39eece623623a7807a83903c4 (diff)
downloadsamba-8ea8526d131107f6d2e71bc56753f89e7125c778.tar.gz
srvsvcd: Use UINT32_MAX where appropriate
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srvsvc/srv_srvsvc_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c
index 99808ee8f3a..b634170a0c9 100644
--- a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c
@@ -282,7 +282,7 @@ static void init_srv_share_info_2(struct pipes_struct *p,
char *remark = NULL;
char *path = NULL;
int max_connections = lp_max_connections(snum);
- uint32_t max_uses = max_connections!=0 ? max_connections : (uint32_t)-1;
+ uint32_t max_uses = max_connections!=0 ? max_connections : UINT32_MAX;
char *net_name = lp_servicename(talloc_tos(), lp_sub, snum);
remark = lp_comment(p->mem_ctx, lp_sub, snum);