diff options
author | Volker Lendecke <vl@samba.org> | 2019-03-11 17:11:06 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-03-12 00:42:19 +0000 |
commit | d7de2f77485bf623f8ca0edc5c0fb823ed9bc1e2 (patch) | |
tree | ff15bfe7169989dc068f1750752983aa902be25c /source3/torture | |
parent | e18610a197aab80a32cae8c1e09b96496679bbad (diff) | |
download | samba-d7de2f77485bf623f8ca0edc5c0fb823ed9bc1e2.tar.gz |
lib: Remove "struct sid_parse_ret" again
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/torture.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 7a209859b3f..ac10de2fdcc 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -10878,7 +10878,7 @@ static bool run_local_sid_to_string(int dummy) { } static bool run_local_binary_to_sid(int dummy) { - struct sid_parse_ret ret; + ssize_t ret; struct dom_sid *sid = talloc(NULL, struct dom_sid); static const uint8_t good_binary_sid[] = { 0x1, /* revision number */ @@ -10964,15 +10964,15 @@ static bool run_local_binary_to_sid(int dummy) { }; ret = sid_parse(good_binary_sid, sizeof(good_binary_sid), sid); - if (ret.len == -1) { + if (ret == -1) { return false; } ret = sid_parse(long_binary_sid2, sizeof(long_binary_sid2), sid); - if (ret.len != -1) { + if (ret != -1) { return false; } ret = sid_parse(long_binary_sid, sizeof(long_binary_sid), sid); - if (ret.len != -1) { + if (ret != -1) { return false; } return true; |