lib: Make sid_parse return the parsed length

Enterprise / Samba - Volker Lendecke [samba.org] - 12 March 2019 00:42 EDT

Use a temporary struct as a return value to make the compiler catch all callers. If we just changed bool->ssize_t, this would just generate a warning. struct sid_parse_ret will go away in the next commit

e18610a197a lib: Make sid_parse return the parsed length
libcli/security/dom_sid.h | 4 +++-
libcli/security/util_sid.c | 7 ++++---
source3/lib/smbldap.c | 4 ++--
source3/lib/tldap_util.c | 4 +++-
source3/libads/ldap.c | 14 +++++++++-----
source3/modules/vfs_default.c | 4 +++-
source3/torture/torture.c | 10 +++++++---
source4/dsdb/common/util.c | 13 +++++++------
source4/torture/unix/whoami.c | 26 ++++++++++++++++----------
9 files changed, 54 insertions(+), 32 deletions(-)

Upstream: gitweb.samba.org


  • Share