librpc:core: Rename find_endpoint to dcesrv_find_endpoint
authorSamuel Cabrero <scabrero@samba.org>
Thu, 3 Oct 2019 17:46:59 +0000 (19:46 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 18 Oct 2019 16:07:38 +0000 (16:07 +0000)
This function will be public and available for s3 and s4 implementations.

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
librpc/rpc/dcesrv_core.c

index bbb52a5bb43ce43a132a2c9e7399821739127a6b..9de64126bb9f1759fde22e0e7ee7d73956274d5e 100644 (file)
@@ -75,8 +75,8 @@ static bool endpoints_match(const struct dcerpc_binding *ep1,
 /*
   find an endpoint in the dcesrv_context
 */
-static struct dcesrv_endpoint *find_endpoint(struct dcesrv_context *dce_ctx,
-                                            const struct dcerpc_binding *ep_description)
+static struct dcesrv_endpoint *dcesrv_find_endpoint(struct dcesrv_context *dce_ctx,
+                               const struct dcerpc_binding *ep_description)
 {
        struct dcesrv_endpoint *ep;
        for (ep=dce_ctx->endpoint_list; ep; ep=ep->next) {
@@ -281,7 +281,7 @@ _PUBLIC_ NTSTATUS dcesrv_interface_register(struct dcesrv_context *dce_ctx,
 
        /* check if this endpoint exists
         */
-       ep = find_endpoint(dce_ctx, binding);
+       ep = dcesrv_find_endpoint(dce_ctx, binding);
 
        if (ep != NULL) {
                /*