summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2009-01-02 22:46:08 +0100
committerKai Blin <kai@samba.org>2009-01-02 23:42:55 +0100
commit120dc0e5aa2778a6ad2da80672b0e51ed77f2f53 (patch)
tree8db20810c9d972e4ee4632c3bb11e9d7ef5c5a0e
parent980aa0d464b5e95c777539cdd7a289b5407f1912 (diff)
downloadsamba-120dc0e5aa2778a6ad2da80672b0e51ed77f2f53.tar.gz
samba-120dc0e5aa2778a6ad2da80672b0e51ed77f2f53.tar.bz2
samba-120dc0e5aa2778a6ad2da80672b0e51ed77f2f53.zip
s4 winbind: Correctly silence a "discard const" warning
Thanks to metze for pointing out the error.
-rw-r--r--source4/winbind/wb_samba3_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/winbind/wb_samba3_cmd.c b/source4/winbind/wb_samba3_cmd.c
index ea3050503d..6af92668a3 100644
--- a/source4/winbind/wb_samba3_cmd.c
+++ b/source4/winbind/wb_samba3_cmd.c
@@ -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;
}