diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-05-22 16:57:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:08:26 -0500 |
commit | f3bf3dd80ab5d0d44510dab409d02b6f47798bd8 (patch) | |
tree | 09a592fdd74164a3ed4c08d1b8d7f1d5e6f16468 /source4/librpc/rpc | |
parent | 23776d243d94ab878b123afb4ab865557bae1a66 (diff) | |
download | samba-f3bf3dd80ab5d0d44510dab409d02b6f47798bd8.tar.gz samba-f3bf3dd80ab5d0d44510dab409d02b6f47798bd8.tar.bz2 samba-f3bf3dd80ab5d0d44510dab409d02b6f47798bd8.zip |
r15812: Explicitly cast to unsigned int.
(This used to be commit c910a3f9c8c657b290bc03a47a6b4cba20f02a55)
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r-- | source4/librpc/rpc/dcerpc_util.c | 6 |
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; } |