From 850a6f3a8df23338b6f1cd2df66d4f7c3b8565e8 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 2 Aug 2005 19:15:19 +0000 Subject: r8935: Fix signed/unsigned comparison warning. Bugzilla #2943. (This used to be commit e928a20c2bf9c79a68711c6bcd4fb91b270245f4) --- source3/utils/net_rpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/utils/net_rpc.c') 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; -- cgit