s4 winbind: Correctly silence a "discard const" warning
[tprouty/samba.git] / source4 / winbind / wb_samba3_cmd.c
index ea3050503d44a82a83d05c15d7fe429effa2cc87..6af92668a37ca5ffe81bbaf5f18d71caa66f08c9 100644 (file)
@@ -115,8 +115,8 @@ NTSTATUS wbsrv_samba3_priv_pipe_dir(struct wbsrv_samba3_call *s3call)
 {
        const char *path = s3call->wbconn->listen_socket->service->priv_socket_path;
        s3call->response.result          = WINBINDD_OK;
-       s3call->response.extra_data.data = path;
-               
+       s3call->response.extra_data.data = discard_const(path);
+
        s3call->response.length += strlen(path) + 1;
        return NT_STATUS_OK;
 }