diff options
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; } |