mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
srvsvcd: Use UINT32_MAX where appropriate
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
78ebd8af88
commit
8ea8526d13
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user