summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-05-22 16:57:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:26 -0500
commitf3bf3dd80ab5d0d44510dab409d02b6f47798bd8 (patch)
tree09a592fdd74164a3ed4c08d1b8d7f1d5e6f16468
parent23776d243d94ab878b123afb4ab865557bae1a66 (diff)
downloadsamba-f3bf3dd80ab5d0d44510dab409d02b6f47798bd8.tar.gz
samba-f3bf3dd80ab5d0d44510dab409d02b6f47798bd8.tar.bz2
samba-f3bf3dd80ab5d0d44510dab409d02b6f47798bd8.zip
r15812: Explicitly cast to unsigned int.
(This used to be commit c910a3f9c8c657b290bc03a47a6b4cba20f02a55)
-rw-r--r--source4/librpc/rpc/dcerpc_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c
index 6c8ed7ecd8..5468e4fd3f 100644
--- a/source4/librpc/rpc/dcerpc_util.c
+++ b/source4/librpc/rpc/dcerpc_util.c
@@ -607,7 +607,7 @@ enum dcerpc_transport_t dcerpc_transport_by_endpoint_protocol(int prot)
}
/* Unknown transport */
- return -1;
+ return (unsigned int)-1;
}
enum dcerpc_transport_t dcerpc_transport_by_tower(struct epm_tower *tower)
@@ -633,7 +633,7 @@ enum dcerpc_transport_t dcerpc_transport_by_tower(struct epm_tower *tower)
}
/* Unknown transport */
- return -1;
+ return (unsigned int)-1;
}
NTSTATUS dcerpc_binding_from_tower(TALLOC_CTX *mem_ctx, struct epm_tower *tower, struct dcerpc_binding **b_out)
@@ -651,7 +651,7 @@ NTSTATUS dcerpc_binding_from_tower(TALLOC_CTX *mem_ctx, struct epm_tower *tower,
binding->transport = dcerpc_transport_by_tower(tower);
- if (binding->transport == -1) {
+ if (binding->transport == (unsigned int)-1) {
return NT_STATUS_NOT_SUPPORTED;
}