diff options
author | Tim Potter <tpot@samba.org> | 2005-08-02 19:15:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:00:21 -0500 |
commit | 850a6f3a8df23338b6f1cd2df66d4f7c3b8565e8 (patch) | |
tree | 3f90c56c2a65b4fadc3940cf7336b0cab811c92f /source3/utils | |
parent | 6e98a3c9994883f911b7027e4bd8fb3238bd2bb3 (diff) | |
download | samba-850a6f3a8df23338b6f1cd2df66d4f7c3b8565e8.tar.gz samba-850a6f3a8df23338b6f1cd2df66d4f7c3b8565e8.tar.bz2 samba-850a6f3a8df23338b6f1cd2df66d4f7c3b8565e8.zip |
r8935: Fix signed/unsigned comparison warning. Bugzilla #2943.
(This used to be commit e928a20c2bf9c79a68711c6bcd4fb91b270245f4)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index 1134e718ad..d922b50823 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -4974,7 +4974,7 @@ static int rpc_trustdom_establish(int argc, const char **argv) return -1; } - if (push_ucs2_talloc(mem_ctx, &uni_domain_name, domain_name_pol) < 0) { + if (push_ucs2_talloc(mem_ctx, &uni_domain_name, domain_name_pol) == (size_t)-1) { DEBUG(0, ("Could not convert domain name %s to unicode\n", domain_name_pol)); return -1; @@ -5128,7 +5128,7 @@ static NTSTATUS vampire_trusted_domain(struct cli_state *cli, goto done; } - if (push_ucs2_talloc(mem_ctx, &uni_dom_name, trusted_dom_name) < 0) { + if (push_ucs2_talloc(mem_ctx, &uni_dom_name, trusted_dom_name) == (size_t)-1) { DEBUG(0, ("Could not convert domain name %s to unicode\n", trusted_dom_name)); nt_status = NT_STATUS_UNSUCCESSFUL; |