pidl: Change *_get_pipe_fns() to return const struct api_struct *
[gd/samba-autobuild/.git] / source3 / winbindd / winbindd_dual_ndr.c
index ed2b5ea22da830478370b3558cab89b5a19e0c99..250d9d3da598d3e15b1cf37c4800d6ded4b2a618 100644 (file)
@@ -300,11 +300,11 @@ enum winbindd_result winbindd_dual_ndrcmd(struct winbindd_domain *domain,
                                          struct winbindd_cli_state *state)
 {
        struct pipes_struct p;
-       struct api_struct *fns;
+       const struct api_struct *fns;
        int num_fns;
        bool ret;
 
-       winbind_get_pipe_fns(&fns, &num_fns);
+       fns = winbind_get_pipe_fns(&num_fns);
 
        if (state->request->data.ndrcmd >= num_fns) {
                return WINBINDD_ERROR;