summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-07-31 20:51:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:26 -0500
commitfd8bae8b1660acefd327121ef3d8a356cb0c09fa (patch)
tree86e1799721a31a6ebb667bb3fa01695828083c54 /source3/nsswitch
parent5fbe298b5ad781670715c63e248131498d73e7c6 (diff)
downloadsamba-fd8bae8b1660acefd327121ef3d8a356cb0c09fa.tar.gz
samba-fd8bae8b1660acefd327121ef3d8a356cb0c09fa.tar.bz2
samba-fd8bae8b1660acefd327121ef3d8a356cb0c09fa.zip
r17345: Some C++ warnings
(This used to be commit 21c8fa2fc8bfd35d203b089ff61efc7c292b4dc0)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/wb_client.c2
-rw-r--r--source3/nsswitch/wb_common.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/nsswitch/wb_client.c b/source3/nsswitch/wb_client.c
index b1a7947137..2f0a694d68 100644
--- a/source3/nsswitch/wb_client.c
+++ b/source3/nsswitch/wb_client.c
@@ -172,7 +172,7 @@ BOOL winbind_lookup_rids(TALLOC_CTX *mem_ctx,
goto fail;
}
- p = response.extra_data.data;
+ p = (char *)response.extra_data.data;
for (i=0; i<num_rids; i++) {
char *q;
diff --git a/source3/nsswitch/wb_common.c b/source3/nsswitch/wb_common.c
index 91ebdbd584..e665a0ffd5 100644
--- a/source3/nsswitch/wb_common.c
+++ b/source3/nsswitch/wb_common.c
@@ -324,7 +324,7 @@ static int winbind_open_pipe_sock(int recursing)
request.flags = WBFLAG_RECURSE;
if (winbindd_request_response(WINBINDD_PRIV_PIPE_DIR, &request, &response) == NSS_STATUS_SUCCESS) {
int fd;
- if ((fd = winbind_named_pipe_sock(response.extra_data.data)) != -1) {
+ if ((fd = winbind_named_pipe_sock((char *)response.extra_data.data)) != -1) {
close(winbindd_fd);
winbindd_fd = fd;
}