diff options
author | Volker Lendecke <vl@samba.org> | 2022-05-15 13:15:31 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2022-05-20 19:02:37 +0000 |
commit | 8ea8526d131107f6d2e71bc56753f89e7125c778 (patch) | |
tree | 1e51577146ea16e8232918ba19c6518b196d1f45 /source3 | |
parent | 78ebd8af885841a39eece623623a7807a83903c4 (diff) | |
download | samba-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.c | 2 |
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); |