winbind: Add some const
authorVolker Lendecke <vl@samba.org>
Tue, 2 Feb 2016 13:21:32 +0000 (14:21 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 16 Feb 2016 09:50:10 +0000 (10:50 +0100)
This makes source and destination a bit clearer to me

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/winbindd/wb_fill_pwent.c
source3/winbindd/winbindd_proto.h

index 4b4484fda0f7e3adddf8a364deb74dec720075ce..2229b056cfed9f067d5af66d42229199be2036cd 100644 (file)
@@ -23,7 +23,7 @@
 
 struct wb_fill_pwent_state {
        struct tevent_context *ev;
-       struct wbint_userinfo *info;
+       const struct wbint_userinfo *info;
        struct winbindd_pw *pw;
 };
 
@@ -41,7 +41,7 @@ static void wb_fill_pwent_getgrsid_done(struct tevent_req *subreq);
 
 struct tevent_req *wb_fill_pwent_send(TALLOC_CTX *mem_ctx,
                                      struct tevent_context *ev,
-                                     struct wbint_userinfo *info,
+                                     const struct wbint_userinfo *info,
                                      struct winbindd_pw *pw)
 {
        struct tevent_req *req, *subreq;
index 6e5071803bcc450dc410ea1e852dd7ba75a53994..1f4f17439940c3250beaf8d6c7a36f8fd22a3a04 100644 (file)
@@ -729,7 +729,7 @@ NTSTATUS wb_query_group_list_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
 
 struct tevent_req *wb_fill_pwent_send(TALLOC_CTX *mem_ctx,
                                      struct tevent_context *ev,
-                                     struct wbint_userinfo *info,
+                                     const struct wbint_userinfo *info,
                                      struct winbindd_pw *pw);
 NTSTATUS wb_fill_pwent_recv(struct tevent_req *req);