summaryrefslogtreecommitdiffstats
path: root/source/utils
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-08-02 19:15:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:00:21 -0500
commite928a20c2bf9c79a68711c6bcd4fb91b270245f4 (patch)
tree419f306c2d43818bd65e9ccf7f87732c9be7dd32 /source/utils
parent604c1b239bca316f7afaf76b1a586c638f3a2562 (diff)
downloadsamba-e928a20c2bf9c79a68711c6bcd4fb91b270245f4.tar.gz
samba-e928a20c2bf9c79a68711c6bcd4fb91b270245f4.tar.xz
samba-e928a20c2bf9c79a68711c6bcd4fb91b270245f4.zip
r8935: Fix signed/unsigned comparison warning. Bugzilla #2943.
Diffstat (limited to 'source/utils')
-rw-r--r--source/utils/net_rpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/utils/net_rpc.c b/source/utils/net_rpc.c
index 1134e718ad2..d922b508231 100644
--- a/source/utils/net_rpc.c
+++ b/source/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;